proofpeer / proofpeer-proofscript

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

Unicode symbol for function arrow #73

Closed phlegmaticprogrammer closed 8 years ago

phlegmaticprogrammer commented 8 years ago

Right now an anonymous ProofScript function is written like

x => x * x

or, using prettier Unicode

x ⇒ x * x

It would be better for the pretty version to look like this

x ↦ x * x
phlegmaticprogrammer commented 8 years ago

It is OK to write anonymous functions in scripts either like that:

x => x * x

or like that:

x ↦ x * x

Note that for case expressions, you still write them either like that:

match y
  case x => x * x

or like that:

match y
  case x ⇒ x * x