|
|
Log in / Subscribe / Register

PHP struggles with attributes syntax

PHP struggles with attributes syntax

Posted Aug 7, 2020 5:29 UTC (Fri) by burki99 (subscriber, #17149)
In reply to: PHP struggles with attributes syntax by flussence
Parent article: PHP struggles with attributes syntax

I was originally also very irritated by the backslashes. About 10 years later, everybody is using them, and together with composer, they are huge success story. So I assume the same will happen with attributes, once the syntax is settled, people will get used to them, no matter which variant will be accepted.


to post comments

PHP struggles with attributes syntax

Posted Aug 8, 2020 19:45 UTC (Sat) by smurf (subscriber, #17840) [Link] (1 responses)

Yeah, but that would have been a success with any other reasonable character. And, well, a backslash is only reasonable if you've been socialized on Windows. On Unix its connotation with "escape whatever special meaning the next character has" is too strong for me to feel comfortable with the thing.

PHP struggles with attributes syntax

Posted Aug 13, 2020 11:03 UTC (Thu) by flussence (guest, #85566) [Link]

> And, well, a backslash is only reasonable if you've been socialized on Windows.

A subset of windows users at that. Japanese Win/DOS had ¥ everywhere \ was used. It's probably baked in as a hard alias for compatibility nowadays.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds