News for hackers. Stuff that matters.
Re:PureScript by eru on Friday November 01, 2013 @08:28AM (#6653205)
In pattern matching, how do you discriminate between literal patterns and variables patterns? I'm especially curious about how `true' and `false' vs `result' are handled.
Re:PureScript by paf31 on Friday November 01, 2013 @03:18PM (#6655681)
This is handled in the parser. There are two productions, identifier and reserved and the two don't intersect. Reserved identifiers like true and false match more eagerly than regular identifiers.