Closed KCreate closed 7 years ago
Every DataType can override the typeof method. This can lead to faulty behaviour:
let box = { func typeof() { "Numeric" } } box.typeof() // => "Numeric"
The new way would be:
typeof 5 // => "Numeric"
It's parsed via the following rule:
Expression -> "typeof" Expression
Associativity is higher than multiplication but lower than a function call.
Every DataType can override the typeof method. This can lead to faulty behaviour:
The new way would be:
It's parsed via the following rule:
Associativity is higher than multiplication but lower than a function call.