Skip to content

Lot of "sugar" added

Compare
Choose a tag to compare
@mantielero mantielero released this 10 Dec 13:00
· 154 commits to main since this release

Code simplified in how to write a model (this is a great thing about Nim).

For instance:

  • before:
inc.addInteger("counter")
inc.setOutput("counter")     
inc.setDiscrete("counter")
inc.setExact("counter")  
inc.setDescription("counter", "counts the seconds")  
inc.parameters["counter"].startI = some(1)
  • now:
inc.addInteger("counter").setOutput.setDiscrete.setExact
   .setDescription("counts the seconds")  
   .setInitial(1)