Herby Vojčík wrote:
That I cannot envision... but Null Pattern object that produces itself for all operations ([[Get]], [[Call]], ...) should not be problematic.
You might be surprised (I am) by how seemingly innocent things can become problematic.
Just on aesthetic grounds, I bet TC39ers will react to this the way we react to document.all that masquerades as undefined.
BTW, "Pattern" and "Null" are both not good words to join to name this thing. A pattern matching strawman exists, wherein patterns are special forms, built from destructuring patterns, used in certain syntactic forms but not first-class objects. And Null is to close to null and the ECMA-262 internal Null type.
As a Unix hacker I can dig the /dev/null reference, if there is one, but it's too far afield.
I do think Smalltalk's nil, even though not identical, suggests a better name. If we were to expose this singleton, we could do worse than call it something "the Nil object". But I'm not sold on exposing it.
Allen (and Mark if he has time) should weigh in. /be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

