Skip to main content
6 events
when toggle format what by license comment
S Oct 3, 2018 at 19:45 history suggested jrw32982 CC BY-SA 4.0
Canonical form of empty while-loop body. More readable ;-). Will all fit in 80 chars. Last ?: can also be removed.
Oct 3, 2018 at 19:37 review Suggested edits
S Oct 3, 2018 at 19:45
Oct 2, 2018 at 16:10 comment added Erik Carstensen Another heuristic may be to take the sizes of surrounding -/+ blocks into consideration: The more +- lines you have around a line, the more tempting it is to merge the blocks. E.g., it could be worth duplicating two adjacent short lines or one long line. Also, if there is just one +- line before and and one +- after, then merging the blocks is not so compelling. Also, I have a vague feeling that I'm asking the wrong question. In my concrete fib case, applying a filter to merge diff blocks is one obvious improvement, but maybe there is there some radically different way to approach the problem?
Oct 1, 2018 at 10:38 history edited Stéphane Chazelas CC BY-SA 4.0
added 40 characters in body
Oct 1, 2018 at 9:49 history edited Stéphane Chazelas CC BY-SA 4.0
added 1491 characters in body
Oct 1, 2018 at 9:35 history answered Stéphane Chazelas CC BY-SA 4.0