Open keneanung opened 6 years ago
While the usual lua idion is returning nil and an error messages in case of an error, this does not always work (like in constructors).
nil
We should definitely use this scheme in the interface (the static MSP class) and we should handle this on the Mudlet side appropriately.
MSP
Inside the library I'd like avoid the nil checks and so on. There are sme options:
We need to evaluate pros and cons of each option and eventually we should choose a single option to be consistent.
While the usual lua idion is returning
nil
and an error messages in case of an error, this does not always work (like in constructors).We should definitely use this scheme in the interface (the static
MSP
class) and we should handle this on the Mudlet side appropriately.Inside the library I'd like avoid the
nil
checks and so on. There are sme options:We need to evaluate pros and cons of each option and eventually we should choose a single option to be consistent.