by RossM · 12y ago · 0 comments
I like Hack because it explicitly doesn't support[0] a bunch of cruft from PHP. It feels a lot to me like the BC-breaking PHP.next people want - easy to switch to for modern applications, but not hindered by supporting PHP 4 code. Bit early to start pointing fingers at it's future though.
Not that I think the former is good practice at all, but isn't the latter a kind of weird use of what is a valid variable name?
lambda _, _: None
gives
SyntaxError: duplicate argument '_' in function definition
but tools like pylint will silence unused-variable warnings if the variable starts with '_'.