From: Robert Marshall <spam@chezmarshall.freeserve.co.uk>
Subject: Re: marrying braket for ?: operator
Date: Thu, 28 Jul 2005 21:06:20 +0100 [thread overview]
Message-ID: <m1br4m1yrn.fsf@chezmarshall.freeserve.co.uk> (raw)
In-Reply-To: ek2acd.46.ln@acm.acm
On Thu, 28 Jul 2005, Alan Mackenzie wrote:
> Baloff <washdc@wash.edu> wrote on 28 Jul 2005 15:20:51 +1000:
>> Hello
>
>> when I move my pointer to a braket, it highlight its marrying
>> braket. but how can I get it to do the same with the ternary
>> if-else operator (?:) I hope this is a good group for this question
>> otherwise please point me.
>
> It's exactly the right group!
>
> There is no command which jumps from a ? to it's : or vice versa.
> Maybe there should be one. Maybe somebody, somewhere, has
> implemented one, and will jump in here with a URL pointing to the
> source code.
>
> The thing is, though, how useful would this command be? Programmers
> tend not to nest these conditional expressions very much. The
> command would have to bound to a key sequence, something like C-c :
> (that's "control-c colon"). By the time you've typed that in, you
> could just as well have found the colon by interactive search by
> typing C-s :.
>
And it's probably not straightforward (for either case), you might have
(x > 4) ? weeble::kerplunk(funky::gibbon ? whoop : holler()) : foible::gibber::eugh();
Robert
--
La grenouille songe..dans son château d'eau
next prev parent reply other threads:[~2005-07-28 20:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-28 5:20 marrying braket for ?: operator Baloff
2005-07-28 7:48 ` Alan Mackenzie
2005-07-28 20:06 ` Robert Marshall [this message]
2005-07-28 20:37 ` Kevin Rodgers
2005-07-28 22:04 ` Alan Mackenzie
2005-07-29 8:22 ` Baloff
2005-07-31 12:20 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1br4m1yrn.fsf@chezmarshall.freeserve.co.uk \
--to=spam@chezmarshall.freeserve.co.uk \
--cc=robert$spam0104$@chezmarshall.freeserve.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.