cfengine-develop
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Cfengine-develop] Re: Homework


From: Andrews, Martin
Subject: RE: [Cfengine-develop] Re: Homework
Date: Thu, 6 Mar 2003 09:22:16 -0500

Fair enough - I agree that having a function around a quoted string to stop
interpolation is not intuitive. A different delimiter seems best. While
single quotes would be natural here they currently allow interpolation.
Unless we are planning major syntax breakage anyway I would not change the
behavior of single quotes. Using a different delimiter seems best - maybe
"""no interpolation""" (another pythonisms - though python uses it
differently).

Martin

> -----Original Message-----
> From: Andrew Stribblehill [mailto:address@hidden
> Sent: Thursday, March 06, 2003 7:02 AM
> To: address@hidden
> Subject: Re: [Cfengine-develop] Re: Homework
> 
> The way people expect functions to work is that if strings are
> implicitly interpolated, this will happen before the function is
> given the string.
> 
> Python has a wart called r'' which lets you ensure that slashes
> aren't interpreted as escape codes. We _could_ go that way to say for
> example, l'do not substitute $(this)' but as you may have guessed
> from my pejorative language, I don't like that.
> 
> Or we could go the Perl way and use '' for non-interpolated strings
> and "" for interpolated ones, with the obvious drawbacks in that
> scheme.
> 
> There's no perfect answer to this question.
> 
> -- 
> MALIN
> SOUTHWEST BACKING SOUTH 5 TO 7, PERHAPS GALE 8 LATER. RAIN LATER.
> GOOD OCCASIONALLY MODERATE
> 
> 
> _______________________________________________
> Cfengine-develop mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/cfengine-develop
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]