nameof feature
| From: | Alexandr Marchenko | Date: | Tue, 12 May 2015 13:29:29 +0000 |
| Subject: | nameof feature | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-86167@lists.php.net to get a copy of this message | ||
I do like Acme::class syntax, when you start using it you cannot stop.
Guys from C# implemented similar but more powerful feature: nameof(Acme),
nameof(Acme.AnyMethod)
https://msdn.microsoft.com/en-us/magazine/dn802602.aspx
Imagine how much confidence it will give you while renaming your methods,
class names etc.