top | item 45164846

(no title)

garbagepatch | 5 months ago

> just make a choice

Now you are bikeshedding. Just go with the defaults.

discuss

order

wartijn_|5 months ago

Which defaults? The programming languages I’ve worked with don’t have defaults for everything related to formatting. Editor defaults don’t work, since not everybody uses the same editor. So you have to make a choice somewhere.

swiftcoder|5 months ago

A lot of (relatively) recent languages do have defaults. Go and rust both come with an auto formatter out of the box, and defaults that are sane enough to just run with

stavros|5 months ago

I guess the GP means "use an opinionated formatter", I agree with both of you.

genericspammer|5 months ago

Please inform me what the defaults are for Java, C#, C++, C, Bash and Python?