#Simplify plural and singular Parameters

4 messages · Page 1 of 1 (latest)

buoyant void
#

There are parameters such as EditorGroup and EditorGroups.
You can use EditorGroup = "Structure" but not EditorGroup = ["Structure"]. Likewise, you can use EditorGroups = ["Structure"] but not EditorGroups = "Structure".
It would be nice if there only existed one of both parameters, capable of taking a single value or a list, instead of needing two separated.
Also, considering that you can use EditorGroups = ["Structure"] for a single value, there is no much sense that EditorGroup = "Structure" exist, specially if you want a part with a single value replace it with multiple, you can't use Replace or Override actions, as those would add multiple values to the EditorGroup that can only handle one, forcing you to first Remove it and then Add the plural one, which feels unnecessarily.

tawny orchid
#

fair enough, it's just easier to parse that way

flint kayak
#

This seems like a valid issue, but the only solutions I can think of are:

  • Remove the support for the singular syntax (breaking everything using it)
  • Have the parser somehow replace the singular with the multiple and a list (I don't know if there's an easy way to do this, even if we were able to determine which singular fields should be expanded)

Unless Walt has any better ideas?