danilopedraza / symstatic

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

pattern matching #4

Closed danilopedraza closed 3 months ago

danilopedraza commented 5 months ago

To start, I won't add a match-like expression, but to write patterns in let expressions. Something like this:

let fib(0) := 0
let fib(1) := 1
let fib(n) := fib(n - 1) + fib(n - 2)
danilopedraza commented 3 months ago

To set a start for PM, I will set some requirements:

danilopedraza commented 3 months ago

This is naively implemented and decently tested now.