Menu

#21 Change AllOptions to something else

v0.3
open
DSL/Doc (16)
5
2012-08-16
2009-04-14
J. Charles
No

Come up with something better, please...

Discussion

  • Mikolas Janota

    Mikolas Janota - 2009-04-14

    I don't like the special keyword AllOptions and that we are diverging from the idea that option groups are named rexpses.

    In regexp notation instead of
    "OptionalOptions: AllOptions -CompulsoryOptions;"
    one would write "[^CompulsoryOptions]", and AllOptions corresponds to ".".

     
  • Fintan

    Fintan - 2009-04-14

    We're not diverging, AllOptions is still a named regexp. It's just defined by default. It just saves you having to write it out manually.

    I agree it's not entirely like regexp syntax, but it wasn't intended to be. I really don't want to write [^SomeOptionOrGroup] in the format string. It's horrible.

    Also, treating option groups as sets is powerful for generating a group with exactly the options we want inside it in a short succinct manner.

     
  • Mikolas Janota

    Mikolas Janota - 2009-07-23

    The idea is to traditional regexp things over options, e.g., "." would mean all options "[^foo] would mean all except foo.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.