News for hackers. Stuff that matters.
Re:Algebraic Data Types: Things I wish someone had explained... by fauigerzigerk on Tuesday November 19, 2019 @03:03PM (#21577626)
Swift is being used in practice and will most likely see more use in the future as Objective-C fades.
Re:Algebraic Data Types: Things I wish someone had explained... by reificator on Tuesday November 19, 2019 @03:30PM (#21577933)
If you follow the link you'll find Swift is already above Objective-C on that survey, just that neither of them made the top ten.
Re:Algebraic Data Types: Things I wish someone had explained... by fauigerzigerk on Tuesday November 19, 2019 @03:45PM (#21578078)
I did follow the link, but I disagree with your conclusion that being used by at least 6.6% of respondents to make apps for hundereds of millions of users amounts to "not being used in practice".
Re:Algebraic Data Types: Things I wish someone had explained... by reificator on Tuesday November 19, 2019 @05:08PM (#21578838)
If you take my comment in isolation, that's a reasonable read.

But it was a response to the following comment:

> > I could not believe they had not been part of any prior language I'd learned.

> Huh? They're part of Pascal (known as variant records) and plenty of other languages besides. It's mostly C that lacks them, and even then you're just expected to implement them yourself, for maximum efficiency.

With the context of that post, I hope you would understand that I am disagreeing with the insinuation that every programmer has used "Pascal [...] and plenty of other languages besides". You can easily learn five different languages and finally end up in Haskell without having encountered ADTs before.