Hacker News new | ask | show | jobs
by Norfair 760 days ago
Finally someone who (correctly) argues that there aren't too many String types.
1 comments

Are the Lazy variants ever a good idea? The author already argues against lazy IO. Are Lazy variants worth using for anything else? I always thought Haskell is typeful and that Lazy variants hide too much under the covers that should be exposed in the types.

Also I still don’t think there’s a great argument for [Char] other than its historical baggage.

I haven't seen a good use case for the lazy ones, versus some sort of iterator around chunks of strict ones.
The lazy ones are convenient when I want to write a quick, small script to deal with a small number of large files.