This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
whyflagsarenolongerviable [2014/08/08 18:39] Mitch |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | From a programming perspective, | ||
| - | |||
| - | Directives are more suitable than flags for the simple reason that flags imply a limited pair of options: True or False (or Set / Reset, On/Off, Yes/No, etc.) | ||
| - | |||
| - | Flags might interfere with each other. Consider the ReadFrom box on the Main Window. ParserMonster allows for the source files to come from drag and drop, the folder browse dialog box or a list file (from another program' | ||
| - | |||
| - | With directives, the framework will obey the last one detected. Simple. | ||
| - | |||
| - | Finally, directives are easier to code and maintain. Flags would have proliferated all over the framework as each module checked an increasing number of options. | ||
| - | |||