4 ms·
Interesting syntax: all the "let" bindings end with "in", eg let comparison = (0 == 0, 0 < 1, 1 <= 1, 2 > 1, 1 >= 1) in Anyone know why "in" ke
by imglorp 2y ago
Interesting syntax: all the "let" bindings end with "in", eg
let comparison =
(0 == 0, 0 < 1, 1 <= 1, 2 > 1, 1 >= 1)
in
Anyone know why "in" keyword?
- moomin 2y agoThe bindings are only valid for the expression following in. Haskell does the same thing.
- arthurbrown 2y agothis is the syntax for variable binding in ocaml. Hazel appears to be written in ocaml and mentions being "ml-like" on the site