2 ms·
>How is C-like syntax a plus? C-style syntax is fairly popular [1]. If it had lisp syntax or haskell syntax most people would complain that they can't figure o
by wongarsu 9y ago
>How is C-like syntax a plus?
C-style syntax is fairly popular [1]. If it had lisp syntax or haskell syntax most people would complain that they can't figure out what's going on without learning all that syntax.
>that to comapre strings you often have to use strcmp
For equality === works just fine. For < and > there is no one obviously correct order, so it's entirely reasonable to use functions for that.
1: https://en.wikipedia.org/wiki/List_of_C-family_programming_languages https://en.wikipedia.org/wiki/List_of_C-family_programming_l...
- deleted 9y ago[deleted]