3 ms·
> The idea is you can write this: > > let _ = print_string "foo" > let _ = print_string "bar" > > at the top level. Ah. Well, the solution is not us
by mercurial 11y ago
> The idea is you can write this:
>
> let _ = print_string "foo"
> let _ = print_string "bar"
>
> at the top level.
Ah. Well, the solution is not use "let _" or ";;", the solution is to avoid sociopathic code like that. Module definition with built-in, unavoidable side effects are evil.