Re:JavaScript Pattern Matching Proposal
by Zacru on Wednesday April 25, 2018 @05:05PM
(#16926156)
But function getDate(date) is hoisted.
The const version isn't.
[ Parent
| on HN ]
Re:JavaScript Pattern Matching Proposal
by codedokode on Thursday April 26, 2018 @01:54PM
(#16934037)
I don't think it is a good idea to rely on such subtle differences that are not well known among developers. We want to write code that is easy to maintain, not compete in knowing ECMA specs, right?