[discussion] `constref` vs `identifier`
See original GitHub issueMaybe 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:
- Created 5 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks php parser interpreted this as
identifier
https://github.com/nikic/PHP-Parser/blob/master/lib/PhpParser/Node/Identifier.phpreleased under
php-parser@3.0.0-prerelease.6