4 ms·
But you have to actively decide to ignore it. Whereas when you're dealing with return codes, the default is to ignore.
by mstevens 18y ago
But you have to actively decide to ignore it.
Whereas when you're dealing with return codes, the default is to ignore.
- silentbicycle 18y agoIn OCaml, you're required to do something with the return from any non-void function. You can just say "ignore (f x)" to discard the result, so it's not hugely inconvenient, but causes suspect code to accumulate warning signs. It seems like a good compromise.
- mstevens 18y agoThis also seems like a pretty good strategy. I really need to take that OCaml book off the shelf.