Re:Null References: The Billion Dollar Mistake – Tony Hoare ...
by zaphar on Monday May 30, 2016 @09:44PM
(#11804122)
Typically it's referred to as an Algebraic Data Type https://en.wikipedia.org/wiki/Algebraic_data_type. Any Type System that can express this type will be able to do the above.
It's not necessarily new since the ML family of languages has had it for a while now. It's also not limited to FP languages but it best known from ML the ML family. Rust has it though as well as Swift i think.
Re:Null References: The Billion Dollar Mistake – Tony Hoare ...
by bogomipz on Wednesday June 01, 2016 @10:41AM
(#11814674)
I see. Thank you for the follow up. This is really helpful. Haskell implements this data type which is why it has come up in this discussion. I need to spend some time with something from the ML family.
Re:Null References: The Billion Dollar Mistake – Tony Hoare ...
by airless_bar on Monday May 30, 2016 @01:12PM
(#11802165)
> formal name
non-shitty
> a trend in newer languages
yes, only discovered a few decades ago
:-D
Re:Null References: The Billion Dollar Mistake – Tony Hoare ...
by bogomipz on Monday May 30, 2016 @02:01PM
(#11802355)
I understand making a snarky comment in addition to some meaningful commentary but really two useless comments? Why even take the time to do so?
Re:Null References: The Billion Dollar Mistake – Tony Hoare ...
by airless_bar on Monday May 30, 2016 @05:41PM
(#11803378)
Sorry, was meant to be a light-hearted response.
Is this a trend in newer languages in general or an FP specific thing?