K&R 4evah
Can we all agree haskell style is a mental disorder?
I think it’s trying to keep track of all the semicolons but my god does it look strange
I might just do that style just to make my professor cringe on my next c# assignment
“I mean, it’s right, it runs, but it looks like shit”
Perl style: all on one line, with the ‘while’ statement at the end.
I went from not being able to tell the difference to being deeply disturbed by everything in the red
What is Lisp style, Lisp doesn’t have this syntax? Or is it referring to something other than Lisp languages. Same with Haskell.
Haven’t coded with Lisp, but I’ve seen Lisp codes that are formatted like that. Haskell too.
Can we talk about variable scope? Is x changing inside a called function without so much as a pointer being passed?
Avoiding global variables is just something dumb people do to protect themselves. Real programmers declare every variable before Main.