Skip to content

it is no longer possible to match pattern values#279

Merged
lutzhamel merged 1 commit intodev-2.0.1from
cleanup-unify
May 12, 2023
Merged

it is no longer possible to match pattern values#279
lutzhamel merged 1 commit intodev-2.0.1from
cleanup-unify

Conversation

@lutzhamel
Copy link
Copy Markdown
Collaborator

it is no longer possible to match on pattern values,

let p = pattern %[(x:%integer) if x > 0]%.
let *p = p. <<< this line will fail

This was done due to the fact that you cannot pattern-match on computations in the if-clause.

@lutzhamel lutzhamel merged commit 46d2fa9 into dev-2.0.1 May 12, 2023
@lutzhamel lutzhamel deleted the cleanup-unify branch May 12, 2023 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant