« first day (3105 days earlier)      last day (1850 days later) » 
01:00 - 17:0022:00 - 00:00

Wes
10:28 PM
hello folks... do you know when this set of features was implemented? docs.microsoft.com/en-us/dotnet/csharp/language-reference/… never heard of it
 
It's been around as long as I can remember and not really that useful
 
Wes
does c# have some sort of lexical scope or does it need objects to pass data between nested scopes?
yes it does... just found it
 
10:49 PM
Every method and set of {} is its own scope
 
Wes
yep thanks, like in ES
 
Generally speaking, the use of ref indicates that you need to break some logic + values into objects to make the code make more sense.
 
Wes
i was arguing with someone that "ref" and lexical scoping aren't much different
 
Hrm, ok. But a ref parameter has an explicit name that doesn't necessarily match the name of the object being passed via ref.
i.e. void foo() { var doot = new Doot(); bar(ref doot); } void bar(ref Doot deet) { /* there is no doot here */ }
 
11:41 PM
they are two different variables, but they point to the same memory
 
01:00 - 17:0022:00 - 00:00

« first day (3105 days earlier)      last day (1850 days later) »