proofpeer / proofpeer-proofscript

The language of ProofPeer: ProofScript
MIT License
8 stars 0 forks source link

Add if Pattern and Type pattern #7

Closed phlegmaticprogrammer closed 10 years ago

phlegmaticprogrammer commented 10 years ago

Two pattern types should be added:

pat if expr pat : Type

with the obvious interpretations.

phlegmaticprogrammer commented 10 years ago

I have added the if pattern construct, but I am not adding anything type related for now. Types are important and should be carefully thought about, for example with regard to Soft Typing, and how Typing within the logic works.