zsh-users
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: zsh-users@zsh.org
Subject: Re: lexing
Date: Mon, 30 Nov 2015 03:33:48 +0000	[thread overview]
Message-ID: <20151130033348.GJ2504@tarsus.local2> (raw)
In-Reply-To: <565BB016.6020905@eastlink.ca>

Ray Andrews wrote on Sun, Nov 29, 2015 at 18:10:30 -0800:
> On 11/29/2015 10:07 AM, Bart Schaefer wrote:
> >The form you're using (#something), is only not-a-comment in pattern
> >or filename-generation context, so $(# this IS a comment).
> 
> When will I run out of things that astonish me about zsh syntax?
> What sort of need would there be to put a comment inside " $(#...) "
> ?  So that's a comment but " (#b) " is not a comment ... sometimes,
> but don't bet on it.

For the same reason as always — to document things for the next reader:

    echo $( # Use a subshell because foo chokes if isatty(1)
            foo
          )

I don't think Bart mentioned the subshell syntax:

    ( # this is a comment
      echo 42 )


  reply	other threads:[~2015-11-30  3:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-29 15:24 lexing Ray Andrews
2015-11-29 17:13 ` lexing ZyX
2015-11-29 18:07 ` lexing Bart Schaefer
2015-11-30  2:10   ` lexing Ray Andrews
2015-11-30  3:33     ` Daniel Shahaf [this message]
2015-11-30  4:20       ` lexing Ray Andrews
2015-11-30  4:47         ` lexing Ray Andrews
2015-11-30 16:23           ` lexing Bart Schaefer
2015-11-30 16:50             ` lexing Ray Andrews
2015-12-04 19:15             ` master class Ray Andrews

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=20151130033348.GJ2504@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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 public inbox

	https://git.vuxu.org/mirror/zsh/

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).