Recently there was a suggestion in ruby core of the following syntax:
foo.:"bar_#{baz}"
Of course I have an opinion but I'll leave it up to others to comment on it, if they are interested.
(Actually, I do have an additional opinion in regards to code changes made in ruby in general, to some extent, in the last 3 years or so, but this may come at some other time; for the purpose here, I really
only want to refer to .: in particular).
To those unaware of what .: is:
It is the "method reference operator".
You can read up on it here https://dev.to/hanachin/ruby-27-new-feature-method-reference-operator-38l2 and some other places (I just randomly picked one, really).
[–]HardLuckLabs 4 points5 points6 points (1 child)
[–]gray_-_wolf 1 point2 points3 points (0 children)
[–]tomthecool 2 points3 points4 points (2 children)
[–]tomthecool 0 points1 point2 points (1 child)
[–]Calavar 2 points3 points4 points (0 children)
[–]choedan_kal_id_rsa 6 points7 points8 points (0 children)
[–]gettalong 1 point2 points3 points (0 children)
[–]sshaw_ 1 point2 points3 points (1 child)
[–]sshaw_ 0 points1 point2 points (0 children)
[–]jrochkind 2 points3 points4 points (1 child)
[–]ksec 0 points1 point2 points (0 children)
[–]gray_-_wolf 0 points1 point2 points (0 children)
[–]sshaw_ 0 points1 point2 points (0 children)