Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jpatte
on Nov 19, 2014
|
parent
|
context
|
favorite
| on:
Show HN: C# 6.0 Functional Language Extensions
> For any nullable, I can use a nullableVar.DefaultTo(defaultValue) to convert it to a non-nullable primitive type.
What would be the difference with "nullableVar ?? defaultValue" ?
steego
on Nov 21, 2014
[–]
Good point. I originally wrote it for VB.NET, though IF(nullableVar,defaultValue) would be better now...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
What would be the difference with "nullableVar ?? defaultValue" ?