The story so far:
On September 13 Jarkko professed a desire for
"a quotish context that would be otherwise like q() but with some minimal extra
typing
I could mark a scalar or an array to be expanded as in qq()." [1]
Seeing this as being especially useful for those of us creating comma
On 15 Sep 2000, at 11:25, Steve Fink wrote:
> Does it strike anyone else as odd that 'foo\\bar' eq 'foo\bar'?
While 'foo\\' ne 'foo\' :-) (specifically, the former is not a syntax error
:-)
Cheers,
Philip
On Fri, Sep 15, 2000 at 11:25:31AM -0700, Steve Fink wrote:
> I agree. I'd like q/.../ to stick as close to giving me ... as possible.
> I can live with the current 'foo\\bar' having only one backslash in it,
> but I'd rather not have to worry about anything else. I'd vote for
> Glenn's allowing t
On Fri, 15 Sep 2000 11:25:31 -0700, Steve Fink wrote:
>Does it strike anyone else as odd that 'foo\\bar' eq 'foo\bar'?
It's an necessary evil. You need a way to escape the string delimiter,
so that it can be included in the string, for which the backslash is
used. Hence, you need to be a be to e
On Thu, 14 Sep 2000 21:06:24 -0700, Glenn Linderman wrote:
>However, let's look at it the other way. How about instead of trying to _extend_
>single quote semantics, that instead we find a way of _disabling_ double quote
>semantics? Let's say within double quotes that \D reverts to single-quote
Nathan Wiger wrote:
>
> Andy Dougherty wrote:
> >
> > How do you turn it off? I want to keep a way to specify stuff without any
> > interpolation whatsoever. I see the usefulness of this sort of quoting,
> > but I also see the usefulness of being absolutely able to turn all
> > interpolation off
Andy Dougherty wrote:
>
> How do you turn it off? I want to keep a way to specify stuff without any
> interpolation whatsoever. I see the usefulness of this sort of quoting,
> but I also see the usefulness of being absolutely able to turn all
> interpolation off.
Yes, I agree with this point, a
> Perl6 should allow scalars and arrays to be tagged such that they are
> interpolated in single quotish context.
How do you turn it off? I want to keep a way to specify stuff without any
interpolation whatsoever. I see the usefulness of this sort of quoting,
but I also see the usefulness of bei
On 14 Sep 2000, at 21:06, Glenn Linderman wrote:
> I _like_ the conceptual idea, here. But I think we need a different kind of
> quoting, not extend single quote semantics. Single quote semantics are really,
> really, good for exact quoting. I'm sure you (since you mention VMS) find single
> q
On 15 Sep 2000, at 1:10, Perl6 RFC Librarian wrote:
> With this proposal, the scalar C<$filename> can be tagged to be interpolated
> by the C<\I...\E> pair and the double quotish context replaced by single
> quotish context resulting in the following:
Definitely with this change, you should incl
Damian Conway wrote:
>> now, what if the double quoted range had a \E in it? either directly or
>> via interpolation? maybe the end escape should be another char than \E?
>
> Make \E significant only where it's explicit.
None of the \ escapes are significant via interpolation, even today
I _like_ the conceptual idea, here. But I think we need a different kind of
quoting, not extend single quote semantics. Single quote semantics are really,
really, good for exact quoting. I'm sure you (since you mention VMS) find single
quote semantics good for escaping all those $ VMS requires.
> that makes good sense. so in a single quote string you can have domains
> of double quote behavior.
That's it exactly. Very well expressed, thanks Uri.
> now, what if the double quoted range had a \E in it? either directly or
> via interpolation? maybe the end escape should be ano
> "DC" == Damian Conway <[EMAIL PROTECTED]> writes:
>> > No thanks. Suppose I want:
>> >
>> > '$x = $a;
>> > $y = func(\I$arg1, $arg2, $arg3\E);
>>
>> Hmmm...should \Ifunc($arg1)\E be replaced by the return value of
>> func($arg1)?
DC> I don't think so. I think \I..\E sh
> > No thanks. Suppose I want:
> >
> > '$x = $a;
> > $y = func(\I$arg1, $arg2, $arg3\E);
>
> Hmmm...should \Ifunc($arg1)\E be replaced by the return value of
> func($arg1)?
I don't think so. I think \I..\E should just impose qq{..} semantics on
the text in between. So yo
On Fri, Sep 15, 2000 at 01:56:39PM +1100, Damian Conway wrote:
>> Hang on... \I \E amounts to the same number of characters as using
>> '. .' (that is, terminating this q-string, concat the thing, start
>> a new q-string)
>
> You can't do that in a <<'HERE' doc.
True.
>> For
> Hang on... \I \E amounts to the same number of characters as using
> '. .' (that is, terminating this q-string, concat the thing, start
> a new q-string)
You can't do that in a <<'HERE' doc.
> For arrays, yes, the proposed \I \E would still be useful. Maybe the
> \I should
Hang on... \I \E amounts to the same number of characters as using
'. .' (that is, terminating this q-string, concat the thing, start
a new q-string) So for scalars, there would be no savings at all.
For arrays, yes, the proposed \I \E would still be useful. Maybe the
\I should just scan for t
On Thu, Sep 14, 2000 at 10:01:23PM -0400, Jerrad Pierce wrote:
> What's wrong with extending current syntax such that:
Please read the discussion so far.
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen
Oh yeah I forget to outline what it currently does for those whom may not have
seen it...
It's usally used for evaluation and interplation of code/subroutines
in "", qq() and <>2||($_<<2>12)){$_="Vainyvq ragel";&{$F[0]};last;}&t;$0-=$_;$_="Lbh jva";
die(&{$F[0]}) if !($0-1);$0-=$0%2?$0>2?2:1:$0<=
What's wrong with extending current syntax such that:
$a = "Hello";
print q(@{[$a]} World), "\n";
outputs
Hello World
instead of
@{[$a]} World
yes, it's a few extra char's but IMHO
it's a logical extension
it makes you think twice before doing it, do you really need to do thi
21 matches
Mail list logo