The main advantage of the two syntaxes:

1. Strict
function bar(int $num){}

2. Weak
function bar((int) $num){}

Any junior-middle PHP developer, seeing this syntax in the code can
understand how it works, without studying the documentation and without
your complex conversion tables.

Explicit is better than implicit, is the motto Python, here it is very
relevant.

Reply via email to