9 ms·
still have code with this indentation style here: https://github.com/hansake/Whitesmiths-C-compiler/blob/main/c_compiler_v22_src/sample/echo.c https://github.co
by mzs 1y ago
still have code with this indentation style here: https://github.com/hansake/Whitesmiths-C-compiler/blob/main/c_compiler_v22_src/sample/echo.c https://github.com/hansake/Whitesmiths-C-compiler/blob/main/...
- DamonHD 1y agoI have always used (ie since the mid '80s) something like WS layout for C and its descendants. Only much later did I hear that name for it. Often unfashionable, but I have also been a magazine editor, and like the braces to visually lead the eye down the edge of the code that they surround, like a non-indented text para.
- mzs 1y agoI prefer the Sun extensions to Indian Hill for grepability but I see the appeal especially to folks that came from pascal. Look closely at the example echo.c, thats not "#include <stdio.h>" ;) We still have this included in lots of code where I work since it dates from around 1980: % grep '/\*' std.h /* std.h header file to allow use of Whitesmiths pseudo classes/types. */ /* the pseudo storage classes /* the pseudo types /* system parameters % And yes for me there are ~600 files I still regularly work in written in WS style.