logoalt Hacker News

hahn-kevtoday at 6:46 AM1 replyview on HN

Without it there's some silly inconsistency. For example I could call `person?.SetName(name)`, but if you wanted to refactor that into `person?.Name = name` you can't.


Replies

ffsm8today at 7:03 AM

That's a great point I didn't think about. From that perspective, it does make sense.

Maybe my feeling is just rooted in the fact I've never used a language which allowed ?. on assignment

show 1 reply