delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/29/09:08:55

From: Cherniavsky Beni <cben AT crosswinds DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How about bracket matching???
Date: Thu, 29 Jun 2000 15:41:48 +0200
Organization: Technion
Lines: 40
Message-ID: <395B521C.639EFE61@crosswinds.net>
References: <38EBD03D DOT 895D1680 AT mindspring DOT com> <38EBFBD7 DOT 7D03CB96 AT hotmail DOT com> <38ee2d47 DOT 139819138 AT news DOT warwick DOT net> <38EF04B6 DOT 231F54A AT is DOT elta DOT co DOT il> <38F1A693 DOT 885A0366 AT mtu-net DOT ru> <cdnllsc8sgc1v2udb8o1uenc7gb0guu53n AT 4ax DOT com>
NNTP-Posting-Host: 132.68.54.8
Mime-Version: 1.0
X-Mailer: Mozilla 4.06 [en] (WinNT; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sean Proctor wrote:
> 
> On Mon, 10 Apr 2000 14:01:55 +0400, "Alexei A. Frounze"
> <alex DOT fru AT mtu-net DOT ru> wrote:
> 
> >Well, what you discuss is really a taste of a programmer.
> >
> >But everyone of you has noticed that matching open and close brackets is a real
> >pain, if your program has up to 10 nested cycles/loops or even composite
> >operators. Especially if this part of source doesn't fit entirely to the screen.
> >
> >What do you suggest here, huh?
> >
> >IMO RHIDE should have a bracket matching feature. I've seen it in Watcom C IDE,
> >it's nice and easy to use, but some hot keys should be used for that instead of
> >mouse click.
> >
> >What do you think?

RHIDE has Control-[ and Control-] for mathcing braces - '{', '}', IIRC.

I have a new idea not seen anywhere: highlight the current "nesting path":
highlight all opening brackets/braces/parens that are closed after the current
cursor position.

> 
> in my opinion if you have 10 nested loops, etc, you need to break your
> program down a little in to functions... =)
> 
> Sean

If you program non-C /* freopen("/dev/null", "a", stdholyflames); */
e.g. Scheme, Lisp, you have tons of parens or have no code.  An editor
should be generous^H^H^H^Hgeneric enough to support different languages.
Aside from that, I agree.

-- 
Beni Cherniavsky <cben AT crosswinds DOT net>
                 (also scben AT t2 in technion)
God is a Real Programmer.  Read DNA for details.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019