Reputation
501
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 6
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
May
19
comment How do I communicate to a colleague that their code does nothing?
@gbjbaanb - your comment sucks!
Mar
15
comment Why aren't field-like events implemented as a list of delegates?
Not the only option available: they could have allowed calling null delegates to succeed but do nothing (and return default(T) for delegates with non-void return type). I think VB.NET did something like that. But the C# team thought it was too magical.
Mar
15
answered Why aren't field-like events implemented as a list of delegates?
Sep
24
awarded  Autobiographer
Jan
14
answered Can we live without constructors?
Sep
13
awarded  Yearling
Mar
1
awarded  Yearling
Oct
4
awarded  Good Answer
Oct
4
awarded  Nice Answer
Apr
13
comment How will closures in Java impact the Java Community?
The example you post is from many years ago - are you sure it's representative of current proposals?
Dec
29
awarded  Commentator
Nov
2
comment async & await - poll for alternatives
Yes, I see that Async-postfix naming convention as a sign that something could be captured more formally. Basically, if there's a rule saying "methods like this should be named a certain way, so people know how to call them properly" then it follows that the same rule could be used to attribute those methods a certain way, and then the compiler to help you to call them properly.
Nov
1
comment async & await - poll for alternatives
@Aaronaught - Why does it prevent the use of var? I wonder if you're responding to the previous revision of my answer... I've completely rewritten it. You can now think of this suggestion as follows: if the method is marked with a special attribute, it's as if the await keyword is automatically inserted in front of calls to that method (unless you suppress this with the start prefix). Everything stays exactly as in the CTP, and hence var works fine.
Nov
1
awarded  Editor
Nov
1
revised async & await - poll for alternatives
Total change to implementation, but still same requirement.
Oct
30
awarded  Teacher
Oct
30
answered async & await - poll for alternatives
Oct
19
comment Make a big deal out of == true?
By writing if (x) { ... you are already asserting that x is a boolean or is convertible to a boolean. What you call it is irrelevant.
Sep
13
awarded  Supporter