You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let xxxxxxxxxxxx = ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]
is turned into this:
let xxxxxxxxxxxx =
[ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
I think the first is better when the items of the list are that long. Even if the full list fits into the 120 chars, if each element is bigger than a given threshold (say 30), we should put it on separate lines instead of adding the semi colons
Interestingly, I had this which fitted on the 120:
for abcdefg in [[]; [abcdef]; [abcdefghijk]; [abcdefghijk;abcdef]] do
and it was turned into this:
for abcdefg in [ []
[ abcdef ]
[ abcdefghijk ]
[ abcdefghijk; abcdef ] ] do
The text was updated successfully, but these errors were encountered:
If the list or array as a whole is a code construct that spans over multiple lines, Fantomas will now put each item on its own line.
In case it is small and fits on one line, it will format it that way.
This:
is turned into this:
I think the first is better when the items of the list are that long. Even if the full list fits into the 120 chars, if each element is bigger than a given threshold (say 30), we should put it on separate lines instead of adding the semi colons
Interestingly, I had this which fitted on the 120:
and it was turned into this:
The text was updated successfully, but these errors were encountered: