smintz / starlarkobject

0 stars 0 forks source link

Support comparisons #4

Open smintz opened 1 year ago

smintz commented 1 year ago

When comparing objects (==/!=/</> etc). The object needs to look for the correct functions (__eq__/__ne__ etc). And if not available to delegate to the super instance. If the super instance is empty, we need to return an indicative error.

smintz commented 1 year ago

see: https://docs.python.org/3/reference/datamodel.html#object.__lt__