Hacker News new | ask | show | jobs
by ben-schaaf 2640 days ago
I don't actually mind the syntax that much, `&` on a symbol just gives you a proc for calling `send` on the first argument. What bothers me is the limitations. If you're going to have special case syntax to avoid having a useless first argument why not go all the way?

Something like this would have made a lot more sense imo:

    users.map { .name.uppercase + '3' }
    numbers.map { * 3 }
2 comments

The last one looks a lot like Haskell:

  map (* 3) numbers
The reason for the limitation is that it was existing syntax, with a different purpose (see the sibling post to yours).