Skip to content

Parsing of lambda and where #997

@brianhuffman

Description

@brianhuffman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    design neededWe need to specify precisely what we wantlanguageChanges or extensions to the language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions