4 ms·
Another reason the second may be better: - Wrap the stack program in a transaction and simply discard the results to roll back the transaction. In an imperativ
by Daniel_Newby 14y ago
Another reason the second may be better:
- Wrap the stack program in a transaction and simply discard the results to roll back the transaction. In an imperative program it is error prone to roll back a complicated operation—the most innocent looking function might mutate external state.
- masklinn 14y agoWell technically F# has no purity handling, so it's just as possible for the most innocent-looking F# function to have side-effects as well.
- Daniel_Newby 14y agoThanks for the warning. That sucks.