Skip to content

Add a warning for is to anticipate using it as a keyword#5229

Merged
laurmaedje merged 1 commit intotypst:mainfrom
wrzian:warn_is
Oct 31, 2024
Merged

Add a warning for is to anticipate using it as a keyword#5229
laurmaedje merged 1 commit intotypst:mainfrom
wrzian:warn_is

Conversation

@wrzian
Copy link
Contributor

@wrzian wrzian commented Oct 18, 2024

This was mostly discussed in the syntax forge of the Discord. There is support among a number of contributors for adding is as a keyword for pattern matching of expressions in a future version, so this PR adds a warning about using it as an identifier to make it easier to avoid errors in future (since it will not be allowed as an identifier when it is a keyword).

@laurmaedje
Copy link
Member

It's unfortunate that we don't have warning support in the parser because this doesn't really belong in eval.

Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
@laurmaedje laurmaedje added this pull request to the merge queue Oct 31, 2024
@laurmaedje
Copy link
Member

Thanks!

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.

3 participants