Hacker News new | ask | show | jobs
by _pmf_ 4176 days ago
I've always wondered why a feature with so much benefits and such low implementation overhead has not been implemented a long time ago.
1 comments

There are many edge cases you need to consider, so a seemingly simple language feature can become hard to get right quickly.

I highly recommend reading through https://roslyn.codeplex.com/discussions/570551 and the other four revisions of the nameof() spec, they do a very good job at explaining the tradeoffs of each design.