4 ms·
You want to be able to communicate intent to clients of the function, especially with static tooling to check for common errors. For example: https://github.co
by elgenie 10y ago
You want to be able to communicate intent to clients of the function, especially with static tooling to check for common errors. For example:
https://github.com/facebook/hhvm/blob/HHVM-3.13/hphp/hack/test/typecheck/void_usage.php https://github.com/facebook/hhvm/blob/HHVM-3.13/hphp/hack/te...
... has an obvious code smell detectable statically:
https://github.com/facebook/hhvm/blob/HHVM-3.13/hphp/hack/test/typecheck/void_usage.php.exp https://github.com/facebook/hhvm/blob/HHVM-3.13/hphp/hack/te...