by the_anon_coward · 8y ago · 0 comments
And that guy talks about computer science? "<-" is a single token, what is so hard about that? It is a lexing issue, not a parsing issue!
Surely one cannot accuse OCaml of being written by laymen:
# type r = { mutable x : int };;
type r = { mutable x : int; }
# let y = { x=10 };;
val y : r = {x = 10}
# y.x <- 100;;
- : unit = ()
# y.x < -10;;
- : bool = falseNo comments yet.