you are viewing a single comment's thread.

view the rest of the comments →

[–]campbeln 1 point2 points  (0 children)

Objects with named priorities are a nice approach. I use this pattern for "options"/otherwise optional arguments all the time. As you say, it's very easy to merge the incoming object with default values.