DStyle: Braces on same line
Joseph Rushton Wakeling via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jul 13 11:29:21 PDT 2014
On 13/07/14 19:51, Brian Rogoff via Digitalmars-d-learn wrote:
> Yes, the same argument for books and slides is also applicable to all other
> media.
Not really. In a book or a slide you have an unavoidable constraint on how much
vertical space you can take up. On a screen, you are unavoidably going to have
to scroll up or down at some point; it's just a question of how often.
Scrolling media (not just code) allow you to make a tradeoff between less
vertically compact styles that better highlight different semantic blocks,
versus more compact styles that packs more data into one screen's worth of
lines, while usually making it less easy to highlight the semantics of what's
being displayed.
You may lean towards favouring compact code over other factors, but at the end
of the day this is a preference based on your personal priorities, not a hard
and fast rule.
More information about the Digitalmars-d-learn
mailing list