Add ?? and ??= operators #42

Merged
defunkt merged 1 commits from null-check-operators into main 2025-11-09 00:12:35 +00:00
Owner

Feels like these are important for a dynamic language that has null.

Do we like the names?

We can still use ? in identifiers and words.

abc = null ?? true  # => true
nope = null
nope ??= true
nope                # => true
Feels like these are important for a dynamic language that has `null`. Do we like the names? We can still use `?` in identifiers and words. ``` abc = null ?? true # => true nope = null nope ??= true nope # => true ```
defunkt added 1 commit 2025-11-08 19:44:37 +00:00
defunkt force-pushed null-check-operators from 336dc12082 to 019f7d84b1 2025-11-09 00:12:30 +00:00 Compare
defunkt merged commit a156d24a91 into main 2025-11-09 00:12:35 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
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: probablycorey/shrimp#42
No description provided.