Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SideburnsOfDoom
6 months ago
|
parent
|
context
|
favorite
| on:
What's New in C# 14: Null-Conditional Assignments
I get that the language syntax is now (slightly) more regular.
But also, reading the code will mean keeping track of (slightly) more possible outcomes.
Metasyntactic
6 months ago
[–]
Sure. But that was the case prior to this feature as well. Previously you'd have to store the variable somewhere and null check it. Those could all lead to different outcomes. This just encapsulates that pattern safely in a regular manner. :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But also, reading the code will mean keeping track of (slightly) more possible outcomes.