Skip to content

Comments

simplify-not-nil-to-just-bang#782

Closed
juniper-shopify wants to merge 1 commit intomainfrom
juni/simplify-not-nil-to-just-bang
Closed

simplify-not-nil-to-just-bang#782
juniper-shopify wants to merge 1 commit intomainfrom
juni/simplify-not-nil-to-just-bang

Conversation

@juniper-shopify
Copy link
Contributor

@juniper-shopify juniper-shopify commented Feb 12, 2026

not_nil! is really helpful, but wouldn't it be better if you could just use a single character to say that something is definitely not nil? Now you can!

foo = "hello" #: String | nil
foo.!.upcase

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@juniper-shopify juniper-shopify marked this pull request as ready for review February 12, 2026 18:58
Copy link
Contributor Author

actually this will not work because def ! redefines the unary NOT operator...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant