Closed alygin closed 4 years ago
Four spaces identation is more visible in the generated pdf. Also, it aligns nicely with LET
:
ReplaceNode(table, id, new) ==
LET bs == table.buckets
k == CHOOSE k \in 0..Len(bs): id \in {n.id : n \in bs[k]}
old == CHOOSE old \in bs[k]: old.id = id
IN
[table EXCEPT !.buckets[k] = (bs[k] \ {old}) \cup {new}]
BTW, here's an instruction on how to change the formatting style: Formatting Preferences.
It looks like having 4 spaces by default + documentation on how to change preferences is safe choice.
At the moment, the default setting for the code formatter is 4 spaces. I'd like to change it to 2 spaces for TLA+, PlusCal and .cfg-files, but not sure yet.
4 spaces:
2 spaces:
/\
's,\/
's and other operators or syntax constructions, so pure tabs are rareAny input on the issue is welcomed.