riff-lang / riff

The Riff programming language
https://riff.cx
BSD Zero Clause License
23 stars 1 forks source link

Implicit value return from functions #23

Open darrylabbate opened 1 year ago

darrylabbate commented 1 year ago

With the removal of implicit printing in 2905761a0fdc81545cc267be4b35b7d10b75bf24, implicit value return from functions should now be possible.

This was attempted earlier in 019700a9915f5c023a7ca2e12dff117e40d0b0bc and later reverted in 13994c7ac921f174e2402ba85f36d3a62df547d8 due to being half-baked. Overwriting OP_POP is not a well thought-out solution.