4 ms·
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 t
by iso8859-1 3y ago
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.
- ivanjermakov 3y agoCould you share an example?
- bPspGiJT8Y 3y agoThis 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 = ...
- iso8859-1 3y agohttps://github.com/purescript/documentation/blob/master/language/Records.md https://github.com/purescript/documentation/blob/master/lang...
- boxed 3y agoI 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.