alcides / aeon

Aeon programming language
https://alcides.github.io/aeon/
8 stars 3 forks source link

Syntax: $ operator #28

Open alcides opened 6 months ago

alcides commented 6 months ago

Haskell supports f $ g a as a shorthand for f (g a).

The way this can be implemented is adding to the syntax the $ operator with the right precedence.

In Haskell, $ has the following type:

($) :: (a -> b) -> a -> b

So this depends on Polymorphism.