Timeline for Circular dependencies: Recursive grammar parser (e.g. json)
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 9, 2016 at 8:53 | history | edited | jon hanson | CC BY-SA 3.0 | edited body |
| Jan 9, 2016 at 8:38 | comment | added | jon hanson | @donquixote Each of the constituent parsers used to build up the main parser are pure functions that do not operate on any object state. The enclosing class is simply being used as a module to house the functions. Consequently they are static fields and methods, which are initialised once when the class is first referenced. If they were declared as variables within a method then they would be initialised every time the method is called. | |
| Jan 9, 2016 at 8:10 | comment | added | donquixote | As a side note: I don't know why everything in your class has to be a static property or static method. Instead you could use instance methods, and local variables. Yes, not even private on object scope, but local within the scope of one function. | |
| Jan 9, 2016 at 8:08 | comment | added | donquixote | I think what you are doing here matches the "stub" solution I mentioned above. | |
| Jan 8, 2016 at 22:19 | history | edited | jon hanson | CC BY-SA 3.0 | added 463 characters in body |
| Jan 8, 2016 at 22:13 | review | First posts | |||
| Jan 8, 2016 at 23:03 | |||||
| Jan 8, 2016 at 22:11 | history | answered | jon hanson | CC BY-SA 3.0 |