[Haskell-cafe] Investing in languages (Was: What is yourfavouriteHaskell "aha" moment?)

Joachim Durchholz jo at durchholz.org
Sun Jul 15 09:50:01 UTC 2018


Am 15.07.2018 um 08:44 schrieb Alexey Raga:
> If you do bits manipulations you want Words, not Ints! Java doesn't have 
> unsigned numbers, so bits manipulations are insanely hard in Java since 
> you _always_ need account to the sign bits. This the _real_ problem.

You don't use bit manipulation in (idiomatic) Java, you use EnumSets 
(use case 1) or one of the various infinite-digits math libraries (use 
case 2).
I have yet to see a third use case, and there's already libraries for 
these, so I do not see a problem.

All of which, of course, just elaborates the point you were making 
around this paragraph: Each language lives in its own niche, and when 
coming from a different niche one usually sees all kinds of problems but 
has yet to encounter the solutions.

Regards,
Jo


More information about the Haskell-Cafe mailing list