spaces vs. tabs to blog interview q

3 views
Skip to first unread message

Raoul Duke

unread,
Jan 6, 2022, 7:58:13 PM1/6/22
to pi...@googlegroups.com
looking at somebody else's code and they have the WEIRDEST whitespace usage around parens. whitespace before AND after each paren. 


Mike Austin

unread,
Jan 7, 2022, 2:41:45 PM1/7/22
to PiLuD
I experimented with similar formatting in C++ for a little while such as:

for ( int i = 1; i < 10; ++i ) {
  printf( "Hello, world." );
}

At some point I stopped since not a lot of code uses this style. The thought was it helped you see the content inside parentheses easier. Debatable.

Raoul Duke

unread,
Jan 7, 2022, 2:55:54 PM1/7/22
to pi...@googlegroups.com
don't get me wrong

i have done similar with space inside parens even recently in my typescript game code

but they went "one louder" and broke the bank. 

:-) 

--
You received this message because you are subscribed to the Google Groups "PiLuD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pilud+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pilud/cddf17d3-377d-458b-a4e2-b30dfb149121n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages