|
|
|
|
|
by BringTheTanks
4066 days ago
|
|
Well, there are non-ironic alternatives: declare(strict_typehints=TRUE); // not ironic, not short
declare(strict_types=1); // ironic, short
declare(strict=true); // not ironic, even shorter
JS has one strict mode, this could've been an opportunity to introduce an umbrella mode for strict coding in general.Also the declare syntax could've been augmented to support passing implicit boolean parameters without setting a value: declare(strict); // oh yeah.
So... you know. Not that it matters what you call it, but choosing ugly (and ironic) over pretty (and sane) shouldn't be taken so lightly. |
|