9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Emacs
@ 2002-06-12 17:56 anothy
  2002-06-12 20:37 ` [9fans] Brace style - an acme how-to Fariborz Tavakkolian
  0 siblings, 1 reply; 2+ messages in thread
From: anothy @ 2002-06-12 17:56 UTC (permalink / raw)
  To: 9fans

// Shouldn't the editor promote... the One True Brace Style ?

in breif, no.

while i'm as much a fan of the style you've likely got in mind as i
imagine most people here are - IN C - it's not universal. as my
interjection there should have prompted, the first concern is that
i'm not always writing C. heck, i don't know about others here, but
_i'm_ not always writing _code_! i use Acme for pretty much all my
text editing needs, from coding to scratch notes to documentation
to printed letters to humans, to email. as often as not (at least),
imposing the One True Brace Style would be more of a burden than a
win. and that says nothing of languages that have differing styles
of syntax. i can only imagine how awkward using the auto-indent
style you're proposing would make programming in some of the
APL-like matrix/array math languages.

and, of course, there's the less theoretical, more practical
concern that pretty much every auto-indent system i've seen gets
things horridly wrong when faced with non-standard use, where
non-standard includes such wild and exotic things as cutting and
pasting code.

i'd further note that acme's brace matching makes it quite easy
to simply write your code ignoring the first tab and injecting it
later. and _surely_ (hopefully?) you're not advocating that the
editor understand the _language_, and impose auto-indenting
"features" on things like statements after if, for, etc.?
anothy


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] Brace style - an acme how-to
  2002-06-12 17:56 [9fans] Emacs anothy
@ 2002-06-12 20:37 ` Fariborz Tavakkolian
  0 siblings, 0 replies; 2+ messages in thread
From: Fariborz Tavakkolian @ 2002-06-12 20:37 UTC (permalink / raw)
  To: 9fans

Get a copy of indent or any beautifier you like
and whenever you want to change the style, mark
the whole buffer and send it to the beautifier (via
|indent or |whatever); switch styles until the cows
come home!

The most difficult part is probably getting all the
compilation issues worked out for the beautifier.

At 01:56 PM 6/12/2002 -0400, anothy@cosym.net wrote:
>// Shouldn't the editor promote... the One True Brace Style ?
>
>in breif, no.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-12 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-12 17:56 [9fans] Emacs anothy
2002-06-12 20:37 ` [9fans] Brace style - an acme how-to Fariborz Tavakkolian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).