We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a ifnull: 8 equivalent to a = a || 8 or a ||= 8 in ruby. For fus it could be a: self | 8 or perhaps a: ? 8
a ifnull: 8
a = a || 8
a ||= 8
fus
a: self | 8
a: ? 8
In general null is known as the billion dollar mistake
null
For a ifvoid: 8 # if (a === undefined) {a = 8;} could be a: ! 8 ie. must be 8 if not defined.
a ifvoid: 8 # if (a === undefined) {a = 8;}
a: ! 8
b: a ifvoid 8 # b = a !== undefined ? a : 8; could then be b: a ! 8 set b to a and must be 8 if a not yet defined
b: a ifvoid 8 # b = a !== undefined ? a : 8;
b: a ! 8
b
a
The text was updated successfully, but these errors were encountered:
I have a plan of adding some new grammars:
b: a ok.or 8 b: a exist.or 8
equivalent to:
b: a ifnull 8 b: a ifvoid 8
I admit that ifnull and ifvoid may be not very intuitive in some cases.
ifnull
ifvoid
Sorry, something went wrong.
No branches or pull requests
a ifnull: 8
equivalent toa = a || 8
ora ||= 8
in ruby.For
fus
it could bea: self | 8
or perhapsa: ? 8
In general
null
is known as the billion dollar mistakeFor
a ifvoid: 8 # if (a === undefined) {a = 8;}
could bea: ! 8
ie. must be 8 if not defined.b: a ifvoid 8 # b = a !== undefined ? a : 8;
could then beb: a ! 8
setb
toa
and must be 8 ifa
not yet definedThe text was updated successfully, but these errors were encountered: