Y
Hacker News
new
|
ask
|
show
|
jobs
by
iammisc
1739 days ago
This is canonical syntax in any functional programming language. This is like a Haskell programmer complaining that in most post-haskell languages, the keyword class means an oop type instead a class of types.
2 comments
Zababa
1739 days ago
No it's not. It's used mostly by Haskell, but ML/SML/OCaml and Scala use a different syntax.
link
pharmakom
1739 days ago
All true, but perhaps it’s better to use something more familiar to more developers, such as
x => f x
Or
x -> f x
link
isaacimagine
1739 days ago
Passerine[0] uses the latter syntax.
[0]:
https://github.com/vrtbl/passerine
link