On Thu, May 12, 2011 at 11:00:32AM -0400, no-re...@cfengine.com wrote: >Forum: Cfengine Help >Subject: Re: Cfengine Help: file_select in std lib and anonymous list >Author: neilhwatson >Link to topic: https://cfengine.com/forum/read.php?3,21918,21919#msg-21919 > >Why define a variable that will only be used once?
Because it's a good practice, and makes extending the code simpler in the future. While I don't agree with this 100%, there's a saying that production code should should only ever have the numbers "0" and "1" inline. Everything else should be a variable or static macro. -- Jesse Becker NHGRI Linux support (Digicon Contractor) _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine