Open stugol opened 8 years ago
Interesting, will sleep on it!
Just doing some quick stats, map
is used about 200 times in the entire stdlib+compiler code-base (just to have some reference). In scripting-style code it might (should) be used more, percentage wise, and it's good if it's swiftly available then. I think this might end up in Onyx, but it needs some more sleeping on it (there are higher priorities before, so there's time for that ;-) )
I think this is better left out. The current way to do the above is short, and commonly known. There's no real point in sacrifizing a terse syntactic construct on this, that could be implemented for other uses, or at least minimizes ambiguities if never parsed at all.
Shame :(
Suggest a "spread operator" like in Groovy. It would make things like
stuff.map(~.downcase)
less ugly.