I realize this is probably a silly question, but...
If I\'m chaining a bunch of let
statements which do not need to know each other\'s values, is it
My opinion is that in
is better. The use of and
implies that the definitions are mutually dependent on each other. I think it is better to be clear that this is not the case. On the other hand, some OCaml programmers do prefer and
for very short definitions, where the slightly more compact notation can appear cleaner. This is especially true when you can fit the definitions on a single line:
let a = "foo" and b = "bar" in