AToMPM / atompm

A Tool for Multi-Paradigm Modeling
https://atompm.github.io/
GNU Lesser General Public License v3.0
22 stars 15 forks source link

Maintainability and formatting fixes to worker files #126

Closed BentleyJOakes closed 2 years ago

BentleyJOakes commented 2 years ago

This change is large but is almost entirely minor formatting and maintainability fixes.

For example, using let instead of var. Also, pulling assignments out of conditionals.

This has two primary benefits. First, the code is easier to read and understand, though it is a bit longer. Second, my IDE (Webstorm) no longer complains about all these minor issues. This makes it easier to see regressions.

No semantics should be changed by these commits. However, it is possible because var has a wider scope than let.