News for hackers. Stuff that matters.
Re:25 Years of PHP by tehbeard on Wednesday June 10, 2020 @09:22AM (#23476691)
> What would be an example?

The mix of c like strpos, strstr and inconsistent parameter ordering (see array map and filter for example)

> What do you mean? Afaik there is no "annotation syntax" in PHP. Could it be that you confuse what certain frameworks and IDEs do with PHP, the language

If there's no official standard, but everyone follows a community standard, then that is the standard. Quit being pedantic.

Hopefully PHP 8's attributes work to fix the mess that is phpdoc being used for annotations.

Re:25 Years of PHP by ZeroGravitas on Wednesday June 10, 2020 @10:08AM (#23477135)
There's possibly an argument that reusing C names when you're wrapping or emulating C functions is actually a good usability design choice which has, over time, become a negative.

Like a floppy-disk save icon, what helped one generation becomes obscure to the next and they obly see the flaws.

Re:25 Years of PHP by _-david-_ on Wednesday June 10, 2020 @03:40PM (#23481154)
>Hopefully PHP 8's attributes work to fix the mess that is phpdoc being used for annotations.

PHP8 annotations won't allow nested annotations so its only a partial solution.