Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


this is the syntax for variable binding in ocaml.

Hazel appears to be written in ocaml and mentions being "ml-like" on the site


The bindings are only valid for the expression following in.

Haskell does the same thing.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: