Re:Go with PHP
by jusssi on Thursday May 11, 2023 @03:20PM
(#35907078)
PHP8 attributes are comments with a special format.
[ Parent
| on HN ]
They are not. Attributes are metadata that can reflected/accessed at runtime: https://php.watch/versions/8.0/attributes
Comments can also be accessed at runtime :)
Re:Go with PHP
by psychoslave on Wednesday May 24, 2023 @09:05AM
(#36057448)
And a program can generally read its source code and make fancy adhoc interpretation, sure. That’s nowhere close to specified facilities that you are guarantied to be able to use with a fair amount of trust in the resulting outcome with the regular toolbox.