News for hackers. Stuff that matters.
Re:Go with PHP by jusssi on Thursday May 11, 2023 @03:20PM (#35907078)
PHP8 attributes are comments with a special format.
Re:Go with PHP by hazn on Thursday May 11, 2023 @05:08PM (#35908409)
They are not. Attributes are metadata that can reflected/accessed at runtime: https://php.watch/versions/8.0/attributes
Re:Go with PHP by zeroimpl on Thursday May 11, 2023 @09:30PM (#35910755)
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.