End range of let definition in OCaml

QuestionsEnd range of let definition in OCaml
sethbeckerman5 Staff asked 4 years ago

I had a problem with defining multiple objects (functions, variables etc.)
I tried to reproduce the problem here:

It gives me a syntax error:

I was wondering why, since if I defined , then defined there would be no problem.
I recognize that putting before defining solves the problem, but you're not supposed to use double semi-colon.
I tried adding a begin / end, wrapping the if / else statement with parentheses.


View on Stack Overflow