-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
∈ in for loops? #8487
Comments
This seems a little risky to me: to me, epsilon implies a set operation, not one that involves order. |
Same as |
+1 for allowing this syntax |
That's a good point. I suppose my objection would lead to the unrealistic idea that using |
+1 ... it seems weird to allow |
Is there a reason #11223 was closed? It seems like fair game if we're going to start aliasing unicode symbols to keywords. |
@malmaud, |
Well, I thought maybe some of the motivation for closing the \mapsto issue was a reluctance to ever have a unicode symbol usable as a keyword, in which case the fact that ∈ already maps to the operator |
-1 from me. IMO, we already have one too many ways to write this construct, since |
You could have said that about using ∈ for the operator |
I think there was a better argument for using |
I am worried about consistency. It's quite hard to explain to people why you can test inclusion by As for eliminating |
Actually, I think Stefan recently said that the |
I think using |
I also don't really like this proposal either. This just touches on a pet peeve were people use Unicode when we have perfectly acceptable and universally understandable (editable!) ascii equivalents. We really should just have one for loop syntax that everyone uses. The for loop |
@jakebolewski, we already have a Unicode equivalent for Why is changing the Just because something is a special form and we can make it different doesn't mean that we shouldn't try to harmonize special forms with other parts of the language. |
+1 to allowing
I think this ship has sailed too, unicode |
If our main goal is to increase the number of confused matlab programmers on the mailing list, I'm sure we can do better ;) |
I'm also in favor of deprecating |
I don't see a whole lot of value in that, esp for loops over multiple indices written by individuals who would rather not be forced to use unicode, |
Regarding this issue, I am all for it. The simplest answers to "When can I write It might be interesting to mention how Wikipedia deals with the very related problem of national spelling varieties of English, because it is a similar problem as the one feared by some commenters here and some helpful guidelines could prevent people getting caught in non-productive quarrels: basically to stay consistent with in a file and to respect the preference of the contributor making a substantial initial contribution to a file. |
I wanted to use the syntax
but discovered that Julia doesn't allow this. Given that
in
and∈
are identical when used as operators, it would be nice to allow this syntax as well.The text was updated successfully, but these errors were encountered: