-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
design neededWe need to specify precisely what we wantWe need to specify precisely what we wantlanguageChanges or extensions to the languageChanges or extensions to the language
Description
Currently, the cryptol parser doesn't extend the scope of lambdas over where clauses. For example:
Cryptol> (\(x:[8]) -> y+y where y = x + 2)
[error] at <interactive>:1:28--1:29 Value not in scope: x
It might be considered less surprising if we changed the parser so that the scope of the lambda extended over the where clause, so that this would be accepted.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
design neededWe need to specify precisely what we wantWe need to specify precisely what we wantlanguageChanges or extensions to the languageChanges or extensions to the language