-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
not = ! #51485
Comments
The issue here is that space is not allowed between a function identifier and the parenthesis. Also I don't think julia> f (1)
ERROR: ParseError:
# Error @ REPL[7]:1:2
f (1)
#╙ ── whitespace is not allowed here I guess the reason for this is macro arguments where it would be impossible to distinguish between |
Hmm, true. And then, why is there a macro, if a simple https://github.com/jolin-io/NotMacro.jl |
See also |
Thanks. The linked PR contains the argument, that both I really don't know, how anybody can come to the idea, that this is true. I know it may sound picky, and if it's just a small issue, but for a newbie everything that is small for an expert, is big for themselves. And it piles up, since this sentiment is very widespread in the community. Why do we lay stones in the way of the people, simply based on the premise that they "will learn our ways", when we can just pick them up, from where they are? Everybody knows what an if not updated
update --skip-mirrorlist --noconfirm Everybody in their right mind would understand this, and basically every non-programmer has no idea, what it means, once you change Code will not read natural for them, and I don't know, who is going to hurt, if we support programming syntax that reads natural to them. This is just outright ignorant towards new programmers, and has an elitist attitude to it. The science background of Julia provides strong support for symbolic programming, and I don't think that is hurting the readability for anyone, as it is optional - at least so long as literate alternatives are available. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I like literate programming and as such, that my code reads like a book.
Currently, there is no way to use the word "not" in that sense:
This checks for
not
being followed by anin
, asnot in
is valid syntax.And I assume, it is easy to check, if
in
is followed, and if not, to just usenot
as a replacement for!
.I don't know the policy of adding two distinct syntax elements to do the same thing, so I would also be fine with a solution that I define myself.
I would still welcome
not
becomes a dedicated control flow keyword, as I find!
to be unreadable for people from the outside, who read the source code within a domain driven design.The text was updated successfully, but these errors were encountered: