2 ms·
That's true, and there is also let func a b c = ..., and most of these are just syntax sugar, mainly useful at the module level. The important thing is, though,
by tomp 15y ago
That's true, and there is also let func a b c = ..., and most of these are just syntax sugar, mainly useful at the module level. The important thing is, though, that the function declaration syntax is the same as the "inline" function syntax, I can easily say:
let f = function 0 -> false
| 1 -> true
use (f)
and then refactor the code into
use (function 0 -> false | 1 -> true)
That's the consistency I'm talking about...