3 ms·
"See and despair: x<-y (assignment) is parsed differently than x < -y (comparison)!" And that guy talks about computer science? "<-" is a single token, what i
by the_anon_coward 8y ago
"See and despair: x<-y (assignment) is parsed differently than x < -y (comparison)!"
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 = false