I have two lists that are queried for data at various places inside my program. Do I have any other options than
- making it static (and possible copying it at the places where it's required)
- passing the lists along the stack
I don't like both options. The second one requires me to pass the lists to almost any function/enzire stack. First one increases the scope and restricts me to one List of each (need one for every socket connection though).
What's my choice here?
Aucun commentaire:
Enregistrer un commentaire