danilopedraza / symstatic

The Symstatic programming language code repository
https://symstatic.org/book
GNU General Public License v3.0
2 stars 0 forks source link

Functions #17

Closed danilopedraza closed 3 months ago

danilopedraza commented 4 months ago

The language does not have functions yet. Functions can be defined with let expressions, like this:

let f(x, y) := x + y

and they can be called like this:

f(5, 1+1)
danilopedraza commented 4 months ago

I got indecisive with this one. I think that, for now, it will be better to go with anonymous functions only.

danilopedraza commented 3 months ago

Functions are now implemented.