Explicit type checks #36

Open
opened 2022-08-17 15:17:04 +00:00 by Grandiras · 0 comments
Grandiras commented 2022-08-17 15:17:04 +00:00 (Migrated from github.com)

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) }

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) }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Darkymos/FAIL#36
No description provided.