-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
re-allow line-terminating colons #35088
Comments
heh. |
ah yes, another quirky alternative. had thought of that too and forgot to put it here. i remember the day my general thoughts with this issue and with #35073 are that we shouldn't be beholden to the past. as it stands now, for kids growing up learning julia as their very first language, we have to teach them that no, you can't do it this way because there used to be / is this other language that did/does it this way, or for which doing it this way caused problems, and so yea we decided to perpetuate this standard despite how ugly it is. |
Yes? That's the case for a large number of things so it isn't like it will be something unique. Also "kids growing up learning julia as their first language" are not the only users of Julia so (like in this case) considerations to other groups of users also need to be taken. |
Putting the arguments to infix |
Yeah, I'd argue if you need to do this, put parens around the entire expression:
|
I'm also quite partial to:
Although I'd think if you're putting that much effort into computing steps, you should probably just use |
It sounds like this is not planned, given the number of good workarounds available, but feel free to undo if anyone disagrees! |
i find it really cramps my code formatting style to not permit colon-defined ranges across multiple lines. and to get around the prohibition requires adding extra parens or defining otherwise needless temporary variables.
disallowed in #4701 because it caused a pythonista problems. can we please consider reverting?
a range has two or three arguments that naturally avail themselves to a line of their own. much more readable that way in many cases. i often want to write:
perfectly readable, right? much more ugly though if i have to:
The text was updated successfully, but these errors were encountered: