Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

null coalescence operator with inexistant param - #131

Open
nj-apps wants to merge 1 commit into
Knetic:masterfrom
nj-apps:master
Open

nj-apps wants to merge 1 commit into
Knetic:masterfrom
nj-apps:master

Conversation

@nj-apps

@nj-apps nj-apps commented Dec 10, 2019

Copy link
Copy Markdown

On left side of '??' operator, it may be better to consider a not defined param as nil instead of raising an error.

Example : if foo is not defined then foo??'default_value' returns 'default_value' instead of en error

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants