Re:4B If Statements
by leeoniya on Thursday December 28, 2023 @06:21AM
(#38792317)
and is-one should be implemented by negating is-two, is-three, and so forth
[ Parent
| on HN ]
I read some text where a cheme was implemented such that numbers were `2 = 1+1`, `3 = 2+ 1`...
Probably Peano numbers.
>Succ Peano
...
The standard joke about my university's grad-level programming languages course is that its formalization unit does a great job of identifying undergrads by discussing Peano naturals and Hoare logic in the same lecture...
Perhaps Nock:
https://developers.urbit.org/reference/nock/definition
> The reader might wonder how an interpreter whose only arithmetic operation is increment can ever be practical.
> The short answer is that a Nock interpreter doesn't have to use the algorithm above. It just has to get the same result as the algorithm above.