News for hackers. Stuff that matters.
Re:The Cult of the Haskell Programmer by eru on Thursday May 16, 2024 @03:25AM (#40376002)
> (The [0..10] is actually syntax, and I think that's quite unfortunate. `range 0 10` would have been just as good.)

Well, Haskell is in fact flexible enough that you can define that range function.

But one reason to make it syntax is that you can define things like [0..], which would be between awkward to impossible to do with a single `range` function in Haskell.

Re:The Cult of the Haskell Programmer by tome on Thursday May 16, 2024 @05:07AM (#40376453)