Skip to content

rename the 'in' predicate to 'member' #244

Open
@lutzhamel

Description

@lutzhamel

The in predicate clashes with the in keyword in for loops necessitating the use of excessive parens, e.g.

for (x,y) if x > y in pairlist do
   assert(x>y).
end

produces the error,

error: expected 'in' expression in for loop found 'do'.

This is due to the fact that in pairlist is interpreted as part of the conditional pattern

(x,y) if x > y in pairlist 

By removing the predicate in this ambiguity will disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions