-
• #2
Well, you can't do that right now, but either of those is possible with some changes to Espruino.
-
• #3
... although playing devil's advocate here, it's only really saving a few characters - what's it really gaining you? Or am I missing something...
-
• #4
just style (maybe some API uniformity), although some parts of espruino API work this way (constructor with options or setup which returns the object), e.g.
right now i need to write the following to create a working SPI object
i would like to be able to use
maybe there is some downside to my approach, i would like to know it :-)