2 ms·
> What does that mean? That's a best practice. Like always using braces in C or Java or not using ternary operators in hard to read way. The syntax is unambig
by WastingMyTime89 3y ago
> What does that mean?
That's a best practice. Like always using braces in C or Java or not using ternary operators in hard to read way.
The syntax is unambiguous but non obvious to read if you don't know precedence rules as it is for most languages. You can make it explicit using parentheses which you should.
I personally agree that parentheses around tuples should be mandatory but it's fairly easy to just put them.
- boxed 3y agoThose are examples of C and Java being very bad. So yea, I think my point stands.
- WastingMyTime89 3y agoI’m not sure I understand your point then because the code in the article is definitely very bad OCaml which is what I have been trying to tell you from the start.
- boxed 3y agoIt's very bad if a language community KNOWS something is very bad and they still allow that to be valid syntax. Like `if (x) break;` in Java/C/C++. It's VERY BAD. Not fixing your language is a big red flag.