cfengine-develop
[Top][All Lists]
Advanced

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

Re: [Cfengine-develop] Re: Homework


From: Bas van der Vlies
Subject: Re: [Cfengine-develop] Re: Homework
Date: Tue, 04 Mar 2003 09:21:57 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130

I agree with Martin. I do not want a perl language with all kind of
special chars to tell what kind of variable it is. It make the cfengine
code less readable. I just trying it to avoid this style of programming ;-). If we want to use arrays/list we must say that this variable is a list. We can invent our own language (Like Chris suggested) or use the
python style for lists (I am also a python programmer).

Andrews, Martin wrote:
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).






--
--
********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: address@hidden      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *
********************************************************************





reply via email to

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