Explicit type checks #36
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
not-sure
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Darkymos/FAIL#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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) }