Skip to content

Explicit type checks #36

@Grandiras

Description

@Grandiras

At this point, the only way to check types is by coding wisely.
An is-operator could help by adding these two syntaxes:

if (value is string) { ... }
if (value is string str) { ... (do something with str) }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions