Follow

Today I implemented the alt (similar to || in C), while and if operators in Comfy-RV

I really love how everything is so simple to write with explicit continuations (the last two arguments of the `compile` procedure: win and lose). And De Morgan’s law to implement alt as a composition of the existing seq (&&) and not. As a bonus, the code generated by this is the most optimal one.

· · Web · 0 · 2 · 0
Sign in to participate in the conversation
Merveilles

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.