Re: [html-templates] Submission/unipro (#135)

The value of these functions is that:

assert_not_null(something, "Unexpected null") 
assert_undefined(something, "Unexpected value")

is more readable than 

assert_true(something !== null, "Unexpected null") 
assert_false(something === null, "Unexpected null") 
assert_false(something !== undefined, "Unexpected value") 

Also assert_null is safer because it's easy to make a mistake and write assert_true(something == null,..) instead of ===

So I believe it makes sense to use the functions. But if you insist I can remove them

View on GitHub: https://github.com/w3c/web-platform-tests/pull/135#issuecomment-23926047

Received on Friday, 6 September 2013 08:30:31 UTC