News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by int_19h on Wednesday January 09, 2019 @08:03PM (#18870632)
Look at it closely - it's exactly the same as your OCaml example, except it uses ";" instead of "in", and indentation is adjusted accordingly.

Although in practice I found that it's common to not indent adjacent nested let..in blocks in OCaml, either, so you'd often see something like:

  let foo = "..." in
  let foo = parse(foo) in
  let foo = escaped(foo) in
  ...
And the rules are really simple - "let" always introduces a new binding.

There are no comments on this comment yet.