Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: spread operator #89

Open
stugol opened this issue May 11, 2016 · 4 comments
Open

Feature: spread operator #89

stugol opened this issue May 11, 2016 · 4 comments

Comments

@stugol
Copy link
Contributor

stugol commented May 11, 2016

Suggest a "spread operator" like in Groovy. It would make things like stuff.map(~.downcase) less ugly.

@ozra
Copy link
Owner

ozra commented May 11, 2016

Interesting, will sleep on it!

@ozra
Copy link
Owner

ozra commented May 18, 2016

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 ;-) )

@ozra
Copy link
Owner

ozra commented Sep 20, 2016

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.

@ozra ozra closed this as completed Sep 20, 2016
@Sod-Almighty
Copy link

Shame :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants