Forum: CFEngine Help Subject: Re: Detriment to being explicit about "any::" ? Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,23421,23502#msg-23502
So, should classes still apply to a block until another class is specified, or should every single promise be prefixed with a class expression? What about compound bodies - should every parameter inside also be prefixed with any::? Similarly, one could argue that users should be required to explicitly define a unique handle and comment on each and every promise, as well as listing dependencies for all promises, Oh, and K&R-style brackets waste precious vertical space; only CCR-style indentation should be allowed, with 2-space tab stops. The => characters must all be vertically aligned. No lines with more than 80 chars allowed. And one list element per line in slist definitions. These are all not things the language should be enforcing (apologies to Python/Fortran/Ruby fans); that's a local policy decision. And, as we know, Cfengine is all about allowing the end node to decide what's best. Personally, my rule is that I'm only explicit about any:: if there's also another class used in the same section. So I don't just throw it in for the fun of it; I include it when it makes the formatting (specifically indentation depth) more consistent, and therefore only when it helps readability. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine