Re: Concerns about {...code...}

2007-12-20 Thread Adriano Ferreira
On Dec 20, 2007 1:48 AM, Michael G Schwern [EMAIL PROTECTED] wrote: I was reading an article about Perl 6, I forget which one, and it happened to mention that code can be interpolated inside double quoted strings. That's one thing, my concern is with the selected syntax. say foo {

Re: Concerns about {...code...}

2007-12-20 Thread Mark J. Reed
I think the issue is that bare vars don't interpolate anymore, but they still have sigils of their own, so adding to the default interp syntax is too noisy: ${$var} is not really much improvement over ${\(expr)}. - Original message - I am not quite sure of all the implications in t... On

Re: Concerns about {...code...}

2007-12-20 Thread Jonathan Scott Duff
On Thu, Dec 20, 2007 at 07:58:51AM -0500, Mark J. Reed wrote: I think the issue is that bare vars don't interpolate anymore, but they still have sigils of their own, so adding to the default interp syntax is too noisy: ${$var} is not really much improvement over ${\(expr)}. That's not quite

Re: Concerns about {...code...}

2007-12-20 Thread Jonathan Scott Duff
On Thu, Dec 20, 2007 at 11:23:05AM -0600, Jonathan Scott Duff wrote: Adriano answered #1 I think: $yaml = Q:!c{ $key: 42 }; Er, I just looked over the spec again and realized that Q does absolutely no interpolation, so it would be more like this: $yaml = Q:qq:!c{ $key: 42 }; or perhaps

Re: Concerns about {...code...}

2007-12-20 Thread Dave Mitchell
On Thu, Dec 20, 2007 at 11:35:44AM -0600, Jonathan Scott Duff wrote: On Thu, Dec 20, 2007 at 11:23:05AM -0600, Jonathan Scott Duff wrote: Adriano answered #1 I think: $yaml = Q:!c{ $key: 42 }; Er, I just looked over the spec again and realized that Q does absolutely no interpolation, so it

Re: Concerns about {...code...}

2007-12-20 Thread Patrick R. Michaud
On Thu, Dec 20, 2007 at 11:35:44AM -0600, Jonathan Scott Duff wrote: On Thu, Dec 20, 2007 at 11:23:05AM -0600, Jonathan Scott Duff wrote: Adriano answered #1 I think: $yaml = Q:!c{ $key: 42 }; Er, I just looked over the spec again and realized that Q does absolutely no interpolation, so it

Re: Concerns about {...code...}

2007-12-20 Thread Michael G Schwern
Patrick R. Michaud wrote: Just to add another perspective, PHP uses curlies inside of double-quoted strings to indicate various forms of interpolation, and it doesn't seem to cause major issues there. PHP has 8000 built in functions and it doesn't seem to cause issues there. I'll not be

Re: Concerns about {...code...}

2007-12-20 Thread Michael G Schwern
Jonathan Scott Duff wrote: On Thu, Dec 20, 2007 at 07:58:51AM -0500, Mark J. Reed wrote: I think the issue is that bare vars don't interpolate anymore, but they still have sigils of their own, so adding to the default interp syntax is too noisy: ${$var} is not really much improvement over