Hello Internals, After much thought and deliberation, I've updated the nameof RFC (https://wiki.php.net/rfc/nameof) to reflect most of this discussion and refine a few edge cases regarding objects. TL;DR: there are a few rules regarding how properties of objects are addressed that I hope a few people will like (and would make it much more usable in static contexts, like attributes).
I'm still not fully settled on the syntax, and this is still very much a work in progress. So, I'd love feedback in that regard. Robert Landers Software Engineer Utrecht NL -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php