2 ms·
Languages introduce restrictions of their own all the time. In Java I can't have a function that works on any type of number, I have to specify the type. In H
by stonemetal12 1y ago
Languages introduce restrictions of their own all the time. In Java I can't have a function that works on any type of number, I have to specify the type. In Haskell I can. In Haskell I can't put random stuff in a list, in Java I can as long as they are all objects.
Those language restrictions slow down your development as you have to design and code around them. People see the extra design\code as a good trade off because it improves safety, but it slows you down if you are just messing around.
- tome 1y agoActually there's really not that much difference. In Java you have to cast to Object, in Haskell you can wrap in Dynamic: https://www.stackage.org/haddock/lts-23.22/base-4.19.2.0/Data-Dynamic.html#t:Dynamic https://www.stackage.org/haddock/lts-23.22/base-4.19.2.0/Dat...