[Top][All Lists]
[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: |
Mon, 3 Mar 2003 23:34:29 -0500 |
It is all academic since I am generating my cfengine files now, but I found
the perlisms noisy. Maybe since our audience is sysadmins and they are
mostly fluent in perl it is okay, but it is adding a lot of punctuation.
Maybe because of my recent efforts with pythin I was thinking that you would
define a list with something like:
control:
myvals = [ a, b, c ]
And still reference it as plain
shellcommands:
"echo $(myvals)"
Martin
----
Martin Andrews
address@hidden
> -----Original Message-----
> From: Luke A. Kanies [mailto:address@hidden
> Sent: Monday, March 03, 2003 4:57 PM
> To: address@hidden
> Cc: address@hidden
> Subject: [Cfengine-develop] Re: Homework
>
>
> On Mon, 3 Mar 2003 address@hidden wrote:
>
> >
> > Here's a homework for you all:
> >
> > What would the syntax of your ideal cfengine statement
> (with loops and types
> > or whatever you want) look like?
> >
> > Everyone submit a couple of examples. One the the big
> issues in language
> > design is syntax.
>
> Well, I'll start with arrays. I'm going to assume at least push/pop
> functions for manipulating them within the 'control' section.
> I'm also
> going to take perl's '@' character for arrays, but not switch
> to '$' when
> referring to individual members (similar to how perl 6 is
> supposed to be).
- RE: [Cfengine-develop] Re: Homework,
Andrews, Martin <=