-
Notifications
You must be signed in to change notification settings - Fork 2k
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
compile a.0.1
to a[0][1]
#918
Comments
Good idea |
I agree |
I think it looks confusing. |
Yes, +1 from me as well. odf raises a good point about |
Note that Coco also allows:
|
As I remarked elsewhere, I would also like to be able to write things like |
I'm not sure about |
@TrevorBurnham: While I don't disagree, I'd say that is probably better off as a separate proposal. Let's keep this discussion to the originally-proposed |
If it's all about reducing punctuation, wouldn't |
That's actually a really interesting idea, though I'm hesitant to yet another meaning to the once-innocuous string of characters |
Note also that the original commit that implemented this is satyr/coco@b368088c. The one in OP is a bug fix for it. |
I'm afraid I'm rather strongly against this, as it divorces what can be used as dotted accessors from what can be used as a valid variable name. Right now, for any |
|
satyr's got you on that one |
and
Alternative:
But how can this be translated into JS? I think the only way is eval() |
Idea from coco, implemented at satyr/coco@c395b035
Anyone against this? It seems like there's no downside, it's convenient, and it looks nicer.
The text was updated successfully, but these errors were encountered: