Maybe something similar to this is the best approach?
Continuing with my idea of making all data N-dimensional matrices, nil or null would just be an empty matrix. Then a statement like if ([]) wouldn't make any sense because an empty matrix shouldn't be truthy or falsy. It should throw a compiler error.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Maybe something similar to this is the best approach?
Continuing with my idea of making all data N-dimensional matrices,
nil
ornull
would just be an empty matrix. Then a statement likeif ([])
wouldn't make any sense because an empty matrix shouldn't betruthy
orfalsy
. It should throw a compiler error.