Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agree, this is something that I wish was changed and it's something that C# got right. I think I tried to look up why this syntax was chosen and found some old github issues when people were actually suggesting the latter syntax (pattern on the right) and I think there were some syntax ambiguities in this syntax. Not sure if this was the main reason. Maybe the lang team just didn't thought the difference is important enough (and it is for me! ;-)). C# lang designers think about IDE experience when designing language syntax (that's why we have "from", "where", "select" order in LINQ, for better IDE code completion), hope other language designers were more thoughtful about it too.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: