I've got a recursive function with the signature
public static string Recurse(string pattern, ObjectDict dict)
The value of dict never changes. It kind of bothers me that I should have to carry around dozens of references to it, and pass it around each time I call the function again. Is there a way around this?
By "never changes", I mean after the initial call.