Re: Re: What do you think about a C# 6 like nameof() expression for

2019-06-19 Thread guest271314
> > Especially since your point seems to be "I don't understand" Don't make up stories. > and "it won't help me personally" Did not state that either. It's time to take a step back Not sure what you mean. On Thu, Jun 20, 2019 at 1:15 AM Frederick Stark wrote: > You've already made this

Re: Re: What do you think about a C# 6 like nameof() expression for

2019-06-19 Thread Frederick Stark
You've already made this point, so you're not adding anything new to the discussion now. Especially since your point seems to be "I don't understand" and "it won't help me personally" It's time to take a step back and allow others to discuss. If a formal proposal eventuates, you can continue to

Re: Re: What do you think about a C# 6 like nameof() expression for

2019-06-19 Thread guest271314
The current proposal is redundant. The user has to already know and write the exact name of the variable, or try to guess the variable name to not, or to, catch an error that includes the name of the identifier as a string. Why should the user have to already know any write the variable as a

Re: Re: What do you think about a C# 6 like nameof() expression for

2019-06-19 Thread Isiah Meadows
I get yet again that the forest here is being missed for the trees. @guest271314 This isn't specific to any one IDE, and isn't even specific to static tools. As mentioned before, this has applicability to assertion libraries (like a userland version of Power Assert) as well as other things. It's

Re: Re: What do you think about a C# 6 like nameof() expression for

2019-06-19 Thread Isiah Meadows
Because the declaration itself is hoisted. The TDZ only delays *initialization*, not *declaration*. - For `var`, the declaration is hoisted *and* it's automatically initialized to `undefined` before executing any body code. - For `function foo() { ... }`, the declaration is hoisted *and* the