BrainGrid icon indicating copy to clipboard operation
BrainGrid copied to clipboard

Why do the synapse props classes' methods all take a reference to the props object?

Open stiber opened this issue 4 years ago • 0 comments

What kind of issue is this?

  • [ ] Bug report
  • [ ] Feature request
  • [X] Question not answered in documentation
  • [ ] Cleanup needed

Logically, there would be a singleton pattern here, but that doesn't seem to be the case. Instead, each method in the class takes a reference to the (presumably single) object of that class. Why don't they just either use this or directly access member variables?

What is affected by this?

Simulator

How do we replicate the issue/how would it work?

Expected behavior (i.e. solution or outline of what it would look like)

Other Comments

stiber avatar Nov 26 '19 18:11 stiber