On Tue, Apr 24, 2001 at 08:42:10PM +0100, Michael G Schwern wrote:
: On Tue, Apr 24, 2001 at 02:32:39PM -0500, Jarkko Hietaniemi wrote:
: > Has the road of just putting things next to each other been extensively
: > tried? It works for Awk... "juxtapose", the Famous Invisible Perl
: > Operator.
: >
: > Perl 5 Perl 6
: >
: > $a = $b . $c; $a = $b $c; # or $b$c
: > $a = "foo".$c; $a = "foo" $c; # or "foo"$c
: > $a = foo . $c; $a = foo$c; # foo $c wouldn't work...
: > $a = $c . foo; $a = ${c}foo # (if foo is a function)
: > $a = foo() . $c; $a = foo() $c;
: > $a = $c . foo(); $a = $c foo();
: > $a = $b->c . $d; $a = $b->c $d; # or $b->c$d;
:
: This is going to make finding syntax errors a bit difficult, as many
: will simply become concatination operators. Consider....
:
: print "Foo"
: foo("bar");
:
: Did the author forget a semi-colon, or did they intend to concatinate
: there? Also, consider this...
Or, did they intend to concatinate 'print' and "Foo" in void context?
--
Casey West
- Re: Sane "+" string concat proposal Mark Koopman
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Casey West
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Dan Brian
- Re: Sane "+" string concat proposal Jonathan Scott Duff
- Re: Sane "+" string concat proposal Stephen P. Potter
- Re: Sane "+" string concat proposal Casey West
- how about just juxtaposing? (Re: Sane "+... Jarkko Hietaniemi
- Re: how about just juxtaposing? (Re: Sane... Michael G Schwern
- Re: how about just juxtaposing? (Re: ... Casey West
- Re: how about just juxtaposing? (Re: ... Edward Peschko
- Re: how about just juxtaposing? (Re: ... David L. Nicol
- Re: how about just juxtaposing? ... Michael G Schwern
- Re: Sane "+" string concat proposal Stephen P. Potter
- Re: Sane "+" string concat proposal Nathan Wiger
- Re: Sane "+" string concat proposal Dan Brian
- Re: Sane "+" string concat proposal John Porter
- Re: Sane "+" string concat proposal Austin Hastings
- Re: Sane "+" string concat proposal Michael G Schwern
- Re: Sane "+" string concat proposal Casey West
