I want off Mr. Golang's Wild Ride

Basile B. b2.temp at gmx.com
Sat Feb 29 16:17:55 UTC 2020


On Saturday, 29 February 2020 at 15:58:28 UTC, JN wrote:
> On Saturday, 29 February 2020 at 08:56:36 UTC, Ron Tarrant 
> wrote:
>> On Friday, 28 February 2020 at 22:50:05 UTC, Walter Bright 
>> wrote:
>>> [...]
>>
>> I tried Go a while back, but when I found that it enforces K&R 
>> style to the point of issuing errors if I used Allman-style 
>> curly braces, I just lost interest.
>>
>> Yeah, it doesn't take much. :)
>
> In these kind of languages, you forget about formatting at all. 
> You just set "go fmt" to run on each save in your IDE and then 
> you can put braces however you want and the formatter will set 
> them up in an expected way.
>
> For D I also run dfmt on save and don't really argue with it. I 
> used to be in the "let people code how they want" camp, but 
> nowadays I'm more for consistent formatting, because it's one 
> less barrier when reviewing code from others.

assuming you only push... what if you need to pull after a PR... 
formatting does not work.
If you collaborate on FOSS you have to follow the style on a per 
repo basis.


More information about the Digitalmars-d mailing list