pietervdvn / Lang

Yet another programming language
1 stars 1 forks source link

Add tautology law operator + generalize examples #29

Closed pietervdvn closed 10 years ago

pietervdvn commented 10 years ago

e.g. ~~ (with name) or >> (without name). Code snippets written there should always evaluate to true.

pietervdvn commented 10 years ago

In the meanwhile, allow examples to add declarations. They will be treated as nameless laws

> b:Bool => False && b = False
>> b:Bool => True || b
~~ neutral element for ||: b:Bool => True || b
pietervdvn commented 10 years ago

Not needed: when no right hand side is found, will be treated as tautology

pietervdvn commented 10 years ago

Fixed in 788c5bb900ed88207319403f19c70a6eeae99d64