Re: [whatwg/url] Give host parser a suitable default for the HTML Standard (ac532ae)

If HTML invokes this without a second argument, why bother changing the variable name? Why not just change the default value?

Writing it this way means callers using the second variable have to say `isNotSpecial = false` to mean "is special", which can be hard for the human brain to process.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/commit/ac532aeaf418caaa996ed05636b752f2caf118e1#commitcomment-29475411

Received on Sunday, 24 June 2018 06:32:59 UTC