Suresh Govindachar wrote: > On 3/7/2017 4:10 PM, Nikolay Aleksandrovich Pavlov wrote: > > 2017-03-08 1:14 GMT+03:00 Bram Moolenaar <[email protected]>: > >> Nikolay Pavlov wrote: > >>> 2017-03-05 16:56 GMT+03:00 Bram Moolenaar <[email protected]>: > >>>> Justin M. Keyes wrote: > >>>>> On Sat, Mar 4, 2017 at 10:10 PM, Christian Brabandt > >>>>> <[email protected]> wrote: > >>>>>> On Sa, 04 Mär 2017, Bram Moolenaar wrote: > >>>>>>> Christian Brabandt wrote: > >>>>>>>> On Di, 28 Feb 2017, Bram Moolenaar wrote: > > >>> - Egyptian brackets have their function as well: it means you can see > >>> more code on screen at once. Yet it does not make code harder to > >>> understand. > >> > >> Hardly and advantage and this is the main cause for merge problems. > >> Having the { and } in the same column is an advantage. So this is > >> clearly a personal preference. > > > > What is the advantage of them in the same column? More code on screen > > means less scrolling and more immediately visible context, this is a > > good and measurable metric. > > It is a metric, but I doubt it is the correct metric to use: for > instance, so what if lots of lines can be seen at once if they are > crowded and jumbled up? Bjarne Stroustrup used to use an Egyptian style > based on K&R -- but recently adapts the Allman/BSD style: > https://en.wikipedia.org/wiki/Indent_style#Variant:_Stroustrup -- one > wonders what made Stroustrup switch! Perhaps he got a bigger or higher > resolution monitor.
There is also a trend in UI design to put more emphasis on white space. That does mean you can fit less information in the same space, but it makes the text much more readable. It's easier to see blocks of code and parse the semantics. Again, it's a personal preference and in my opinion mainly based on what you are used to. I hated egyptian style until I was forced to use it for a couple of years, now I know both work OK. Being consistent is the most important. In these cases where there is no clear winner, the choice is to keep it as it is. -- hundred-and-one symptoms of being an internet addict: 86. E-mail Deficiency Depression (EDD) forces you to e-mail yourself. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
