Recently hit upon this approach to OSC handling -- pro: easily scalable by just adding more [r] keys; con: no way to print an error for unrecognized OSC paths.
Maybe it's old news for some, but I hadn't seen it before, and it made this recent patch a lot easier to write.
hjh