question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[discussion] `constref` vs `identifier`

See original GitHub issue

Maybe we can avoid constref node and use identifier everywhere. Looks babylon do this, also it is more generic. It is remove unnecessary ast node.

Maybe related to https://github.com/glayzzle/php-parser/issues/183. I think better for self, parent and static use identifier.

Also related https://github.com/glayzzle/php-parser/issues/113.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alexander-akaitcommented, Sep 27, 2018
0reactions
ichiriaccommented, Oct 21, 2018

released under php-parser@3.0.0-prerelease.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing juce::String as const ref vs. by copy
If the function is going to store that string somewhere, or assign it to another string, then pass it by value (and you...
Read more >
C++: const reference, before vs after type-specifier
I like the latter better because const& is a unit there meaning "constref", and the name arg is separated by a blank from...
Read more >
9.4 — Lvalue references to const - Learn C++
Hi, you say in the last lesson that "lvalue references" reference an object, and that they cannot be made to reference a new...
Read more >
Variables — Chapel Documentation 1.28 - chapel-lang.org
The variable-kind specifies whether the variables are parameters ( param ), constants ( const ), ref variables ( ref ), or regular variables...
Read more >
Untitled
Just declare type & identifier = identifier;; The assignment is important. Consider simpleRef.cpp; Just like parameters, we can have a const ref variable....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found