2 ms·
Perhaps my "just wrong" was an overstatement. I guess my real objection is that they should use a different keyword than "if". Like in ocaml: match x with
by yummyfajitas 17y ago
Perhaps my "just wrong" was an overstatement. I guess my real objection is that they should use a different keyword than "if". Like in ocaml:
match x with
[] -> 0 |
_ -> 7
Same semantics, but it doesn't look like a C/Python if statement.
They could also use if, but require an else clause (like Haskell). Like it or not, syntax does matter to language adoption.