3 ms·
You are free to use a Map in Haskell whenever it suits you. Nothing requires to to use ADTs when it would not make sense to do so.
by platz 7y ago
You are free to use a Map in Haskell whenever it suits you. Nothing requires to to use ADTs when it would not make sense to do so.
- tom_mellior 7y agoSure, I said the issue was not insurmountable. But (and yes, I know Haskell programmers won't necessarily agree) there are contexts in which following a direct, mutable reference is superior to indirecting through a map.
- platz 7y agoSure, Desktop GUI programming tends to be one of those contexts. But I think those contexts are much rarer in Server APIs, and the internet has shifted the focus of programming from GUIs to APIs. I wouldn't recommend Hsakell for a desktop GUI, but it's excellent in the API world. It's more of a backend language.
- leshow 7y agoThere are some really cool things in haskell-gi. Haskell has the ability to make some wonderful DSLs. Have a look: https://haskell-at-work.com/episodes/2018-11-13-gtk-programming-with-haskell.html https://haskell-at-work.com/episodes/2018-11-13-gtk-programm...