Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WTF is a T_DOUBLE_COLON?! #4290

Closed
hikari-no-yume opened this issue Nov 20, 2014 · 5 comments
Closed

WTF is a T_DOUBLE_COLON?! #4290

hikari-no-yume opened this issue Nov 20, 2014 · 5 comments

Comments

@hikari-no-yume
Copy link

Everyone knows it's T_PAAMAYIM_NEKUDOTAYIM! C'mon, guys!

@fredemmott
Copy link
Contributor

These have identical values in PHP5, PHP7, and HHVM. T_PAAMAYIM_NEKUDOTAYIM is still defined and usable in HHVM. The only difference I'm aware of is the string we output in error messages.

If this is causing a practical problem, could you comment with an example?

@hikari-no-yume
Copy link
Author

I don't object to the constant alias. What I object to is the renaming of the familiar syntax token. PHP programmers have got used to T_PAAMAYIM_NEKUDOTAYIM. Why needlessly change it?

@SiebelsTim
Copy link
Contributor

Because PHP changed it and we had bad zend test due to it.
http://3v4l.org/RjmUW

@fredemmott
Copy link
Contributor

  • HHVM's behavior is more internally consistent: http://3v4l.org/2T8qQ
  • this is a usability improvement without breaking any real-world code that we're aware of

@fredemmott
Copy link
Contributor

filed https://bugs.php.net/bug.php?id=68467 for the inconsistency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants