not = ! #51507
Replies: 7 comments 7 replies
-
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 |
Beta Was this translation helpful? Give feedback.
-
Hmm, true. And then, why is there a macro, if a simple |
Beta Was this translation helpful? Give feedback.
-
See also |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
The issue is that it won't help to just add The decision in #19788 was primarily that it was not worth the churn to consider a change of that magnitude at that point in the languages evolution. That is only more true now. |
Beta Was this translation helpful? Give feedback.
-
I don't like But given there is The you would have well three ways for this... I think we should at least reserve I had an idea where |
Beta Was this translation helpful? Give feedback.
-
Before you spend too much of your (or others) time on this, consider the downsides: Arguably it helps to have I've not looked at literate programming closely, but to me it implies literate [English] programming. We are not going to add nicht (German), ekki (Icelandic), ikke (Danish) etc. You might say well Julia is English (but it's not really), with e.g. I'm not saying Chinese people wouldn't know English or the Latin alphabet, likely most educated people do. But not all people, e.g. for teaching programming to kids. Then not and while are just a string of keystrokes... E.g. I started learned English BTW, when I was 10 years old (for the computer I had just bought) from my Oric-1 BASIC manual just to do programming, such as SAVE keyword (why?). |
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions