diprism / perpl

The PERPL Compiler
MIT License
10 stars 5 forks source link

Syntactic sugar for natural numbers #128

Open ccshan opened 1 year ago

ccshan commented 1 year ago

@davidweichiang says "Maybe we should add numbers to PERPL. Whenever I demo it, that is always what people balk at."

Something like Agda's BUILTIN NATURAL would be a great start.

Maybe @ariagivens wants to take this on...

davidweichiang commented 1 year ago

Cf. #47

davidweichiang commented 1 year ago

Yeah I think all that is really needed is

I think I’m okay with making programmers pattern match on Zero and Succ.

Then maybe: