anoma / juvix

A language for intent-centric and declarative decentralised applications
https://docs.juvix.org
GNU General Public License v3.0
442 stars 54 forks source link

Support Anoma representation of Maybe #2856

Closed paulcadman closed 4 days ago

paulcadman commented 5 days ago

This PR add support for Anoma/Nockma representation of the Maybe type (and other Maybe-like inductive types).

Anoma has chosen to represent the Maybe type in Nockma in the following way:

nothing: nil just x: [nil x]

The strategy used in this PR is the same as the one we use for 'List-like' inductive type representations.