BlueStyle icon indicating copy to clipboard operation
BlueStyle copied to clipboard

Spaces after comma in union type?

Open tk3369 opened this issue 4 years ago • 1 comments

What's the recommendation for

T = Union{Int, String}

versus

T = Union{Int,String}

tk3369 avatar Sep 04 '21 18:09 tk3369

we should decide and write something in the main guide about this!

the current status quo is that Blue Style has no preference here... but in JuliaFormatter.jl BlueStyle has to default to one or the other and so far it defaults to no whitespace (#70)

edit: if i remember rightly, the reason for the defaulting to whitespace_in_typedefs = false was that having the whitespace led to a lot of method definitions going past the line length limit and getting changed to be written over more lines. which arguably is fine. but i think it was the reason.

(xref #77 too)

nickrobinson251 avatar Oct 07 '21 17:10 nickrobinson251