News for hackers. Stuff that matters.
Re:Writing that changed how I think about programming languages by stonemetal12 on Wednesday May 14, 2025 @10:16AM (#43984830)
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.

Re:Writing that changed how I think about programming languages by tome on Wednesday May 14, 2025 @03:30PM (#43988322)
Actually 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/Dat...