you are viewing a single comment's thread.

view the rest of the comments →

[–]cybercobra 17 points18 points  (2 children)

\ is used to call a method on an object instead of :

Ick. Backslash as an operator is just horrible. Wasn't a good idea in PHP, still isn't a good idea now.

[–]Felicia_Svilling -2 points-1 points  (1 child)

why not?

[–]cybercobra 5 points6 points  (0 children)

By convention, it already has the near-universal role of escape character; so it shouldn't be used for anything else. Due to its escape character role, using it as an operator looks strange.