On Tue, Mar 02, 2010 at 12:28:25PM -0500, Daniel V Klein wrote:
>> That's good to hear--there's at least one other crazy person here!  :-)
>
>That's me, crazy...
>
>> >As long as you're at it, you probably want a tolower() and toupper() functio
>> n.
>> 
>> And, left(), right(), substr(), length(), sprintf(), s///, and others.
>
>No.  left/right/substr are from before regexp's, and should be shot.  

Fair enough.

>Length, probably not.  

Why?  How is including this, or other "basic" (and convergent) functions
a bad thing?

>Sprintf, maybe.  Only maybe.  

Ditto.

>s/// no, because that breaks the whole convergence thing.

I'm using "s///" to refer to something like regreplace() as we've talked
about elsewhere in the thread, as opposed to the operator that modifies
a variable in-place.  Sorry for the confusion.

>Cfengine is not a programming language - it may have some language-like
>features, but it is not a programming language.

Sure, but there are still cases where one needs to do fairly simple
programatic things (like string munging), and having to punt and call
awk/sed/perl/python/ruby for basic stuff seems foolish.  If you need to
do something really complicated, then a script/program is probably the
way to go, instead of coding a mess of interdependent promises.  

-- 
Jesse Becker
NHGRI Linux support (Digicon Contractor)
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to