News for hackers. Stuff that matters.
Re:VGA ROM Fonts (2020) by swiley on Monday May 03, 2021 @10:48AM (#27025741)
C# feels cramped unless you have huge desktop monitors.
Re:VGA ROM Fonts (2020) by sedatk on Monday May 03, 2021 @12:40PM (#27027253)
Luckily, that’s changing. C# 10 is converting namespace blocks into directives like Java. That means one fewer indent.
Re:VGA ROM Fonts (2020) by zorked on Monday May 03, 2021 @01:35PM (#27028093)
Do people indent namespaces in C#? In C++ it's common practice to not indent.
Re:VGA ROM Fonts (2020) by sedatk on Tuesday May 04, 2021 @01:02AM (#27034224)
Yes, it's traditional with C# to indent every multi-line block. There are teams and individuals who opt for some exceptions (like switch/case), but none of them are universally adopted. I haven't seen a single example over the last two decades where namespaces aren't indented. The defaults go a long way.