HaxeFoundation / HaxeFoundation/haxe

!is operator?

Open
#9,801 5 comments 13 reactions 0 assignees View on GitHub
discussion
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Now when we have `is` together with `EIs`, maybe we should also have `!is` and `EIs(not:Bool)` or something.

The motivation for this is that negating `is` with normal `!` requires parens so it's rather ugly and annoying to write:
`if (!(something is SomeType))`
...compared to
`if (something !is SomeType)`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.