Re:The power of Result types in Swift
by solidsnack9000 on Sunday June 17, 2018 @06:56PM
(#17334852)
It seems like a major legacy of practical experience with FP in the 200x and 201x years is going to be result types.
[ Parent
| on HN ]
Every decade mainstream programming culture finally picks up one feature from ML.
Re:The power of Result types in Swift
by solidsnack9000 on Monday June 18, 2018 @08:52PM
(#17342916)
Technology is spreading much more quickly than training so it makes sense. ISWIM was written up in the fifties.
Also, the idea of mapping and folding, which is now everywhere, and is not limited to traditional collections.
(Likely applicatives will take another decade to go mainstream.)
Re:The power of Result types in Swift
by solidsnack9000 on Monday June 18, 2018 @02:07AM
(#17336245)
The 4th generic added to Go will be our memorial.
Erring[ResultType]Wouldn't that be the day. The funny part is how they preached 'errors are values', and instead of giving a good error monad, they implement a poor version of it explicitly where they feel like it.