On Sep 22, 2009, at 12:31 AM, Brice Figureau wrote:

>
> On Tue, 2009-09-22 at 08:38 +0200, David Schmitt wrote:
>> [email protected] wrote:
>>> The idea is that x/y/z (chained division) is rarer than regexp--in  
>>> part because nobody trusts My Dear Aunt Sally that far.
>>>
>>> So it gets rid of the problem that was originally discovered but  
>>> not the root cause Brice realised behind it..
>>>
>>> As for context sensitivity, I'd favour positive (regular  
>>> expression can occur in specific places) to negative.
>>
>> +1. Or use perl's m// to denote a matching regexp. That would get  
>> rid of
>> the ambiguity at the lexing level.
>
> Unfortunately, not always:
>
> $var = $thisvarendswithm/4/4

That should lex fine -- the variable will lex, then the slash.

-- 
It's very hard to predict things . . . Especially the future.
     -- Prof. Charles Kelemen, Swarthmore CS Dept.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to