aeternity / aesophia

Stand alone compiler for the Sophia smart contract language
https://docs.aeternity.com/aesophia
ISC License
51 stars 19 forks source link

Introduce pipe operator |> #371

Closed ghallak closed 2 years ago

ghallak commented 2 years ago

Fixes: #230

ghallak commented 2 years ago

Runtime tests: https://github.com/ghallak/aeternity/blob/3054792ba66e4086075af9713b064c8eb8d673f9/test/contracts/pipe_operator.aes

ghallak commented 2 years ago

For consistency, should this be called pipe operator or reverse application operator? :thinking:

ghallak commented 2 years ago

@radrow You suggestion seems good, but since we don't have partial application currently, this might be done in another PR.