On Wed, 27 Apr 2016 19:34:09 +0000 "Moore, Joe" <
joe....@siemens.com> wrote:
MJ> Am I reading this correctly--
MJ> A triple-equals-arrow means the same as the word expression followed by a regular =>?
MJ> So now we can define classes in several ways:
MJ> "stayhome" expression => "Friday" . "Day13" , persist => "4320" ;
MJ> "goout" ===> "!raining" . "have_umbrella" ;
MJ> "feed_fish" or => { "Monday", "Wednesday", "Friday" } , scope=> "bundle" ;
MJ> "feed_cats" expression => "have_cats.(Tuesday|Thursday|Saturday)";
MJ> have_dogs:: "feed_dogs" ===> { classmatch("Day[0-9][0-9]?") }, scope => "namespace";
MJ> And cfengine will avoid Friday the 13th, not get wet in the rain, and feed the fish, cats (if I have any) on their correct schedules, and dogs in this namespace every day (if I have any).
MJ> But this won't work:
MJ> "i_win" => or { "lucky", "higher_score", "forfeit" } ;
MJ> nor this:
MJ> "everybody" => any;
MJ> This seems too complicated.
I proposed like 10 different ways and everyone is complaining about the
triple arrow. Read my earlier post please! There are more things to
complain about!
Ted