News for hackers. Stuff that matters.
Re:Currying by iso8859-1 on Sunday April 07, 2024 @08:30PM (#39965158)
If you look at how people actually write PureScript, which is much like Haskell, but with anonymous records, you can see that they're not actually used 99% of the time.
Re:Currying by ivanjermakov on Sunday April 07, 2024 @10:12PM (#39965634)
Could you share an example?
Re:Currying by bPspGiJT8Y on Monday April 08, 2024 @10:26AM (#39970071)
This function would use an anonymous record:

    splitString :: { pattern :: String, string :: String } -> Array String
    splitString { pattern, string } = ...
This function would use positional arguments:

    splitString :: Pattern -> String -> Array String
    splitString pattern string = ...
Re:Currying by iso8859-1 on Monday April 08, 2024 @10:35AM (#39970171)
Re:Currying by boxed on Monday April 08, 2024 @04:43AM (#39967570)
I write quite a bit of Elm and I use currying a lot. I really wish it was explicit. Or at least that my IDE could highlight them.