You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logical operators
&&, ||, !
The operand should be bool type; otherwise type conversion will be incurred.
I am curious if numbers, empty strings, or null should be evaluated as falsey or truthy where bools are expected - ie logical operators, and conditional expressions, or if statements.... @aparajit-pratap you filed a few tasks related to this and I am looking for where this is specified - if it's not specified, let's specify it. @gregmarr@pinzart - what does thunderstorm do?
The text was updated successfully, but these errors were encountered:
mjkkirschner
changed the title
language spec indicates numbers can NOT be coalesced to bools
language spec indicates numbers can NOT be converted to bools
Feb 11, 2020
but later it says:
I am curious if numbers, empty strings, or
null
should be evaluated asfalsey
ortruthy
where bools are expected - ie logical operators, and conditional expressions, or if statements....@aparajit-pratap you filed a few tasks related to this and I am looking for where this is specified - if it's not specified, let's specify it. @gregmarr @pinzart - what does thunderstorm do?
The text was updated successfully, but these errors were encountered: