2 ms·
Well, the problem here is the re-use of existing operators. (That's why it's great that Haskell and other languages in that family allow you to define your own
by eru 4y ago
Well, the problem here is the re-use of existing operators.
(That's why it's great that Haskell and other languages in that family allow you to define your own operators, instead of eg re-using bit-shifting for IO.)
- WalterBright 4y agoDefining your own operators means combining the lexer with the semantic analysis, which comes with all sorts of complexities.
- eru 4y agoActually, no. At least the way it's handled in Haskell and OCaml avoids this problem. (Btw, parsing C++ is already Turing complete.)