Library Description

From OpenEUO
Jump to: navigation, search

The simplelib library is an aggregation of low level 'boiler-plate' code useful in constructing complex scripts. For certain needs that arise in any script of scale, simplelib provides a resilient framework of subsystems with a unified error condition reporting and handling mechanism, standardized calling convention, and strict parameter checking.

simplelib aims to provide a function oriented interface in order to localize usage errors and simplify run time debugging. simplelib provides encapsulated flow-of-control constructs to help minimize the necessity of building complex ad hoc if-then clauses. In a dynamic language like Lua, complex yet robust conditionals can be especially difficult for beginners to build or correct.

Currently simplelib stands on its own without any dependence upon other libraries. simplelib names have been chosen to minimize interference/confusion with other libraries, or lua or openeuo keywords. Names are encapsulated in immutable interface tables such that misspellings or other calls to nonexistent methods are trapped and reported local to the erroneous call in user code. Major subsystems in simplelib perform standardized parameter type checking to further reduce usage errors prevalent due to lua's dynamic typing of variables.

See Also