Timeline for How far should 'var' and null coalescing operator '??' be entertained without hampering readability?
Current License: CC BY-SA 2.5
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 29, 2014 at 16:56 | comment | added | Charles Wood | After a couple of iterations in this pattern I start feeling like I'm reading an Excel function :/ | |
| Nov 10, 2011 at 18:29 | comment | added | Jesse C. Slicer |
@Xaade - if String.Empty ever returns null, we're in for one hell of a lot of broken code.
|
|
| Nov 10, 2011 at 14:19 | comment | added | Carra | @Xaade You can never be sure enough. But really, using String.Empty or "" is a personal preference. I use "" because it's shorter... | |
| Nov 9, 2011 at 15:09 | comment | added | Lee Louviere |
var a = b ?? c ?? d ?? e ?? String.Empty ?? "";
|
|
| Mar 16, 2011 at 20:48 | comment | added | CaffGeek | I use both ALL the time | |
| Mar 16, 2011 at 20:13 | comment | added | pdr | @Job, in honesty, so would I. I was going to put something in that string, then couldn't think of anything :) | |
| Mar 16, 2011 at 20:04 | comment | added | Job | I would use `String.Empty' here. | |
| Mar 16, 2011 at 14:00 | history | migrated | from codereview.stackexchange.com (revisions) | ||
| Mar 16, 2011 at 10:40 | history | answered | pdr | CC BY-SA 2.5 |