I'm making the assumption that 'of' might be parsed as part of the statement syntax in this case, but really doesn't answer why a function may not have the same name as it isn't a reserved keyword.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Mon 2021.09.06
During development, attempted to create shortened two letter function names that maintained alignment.
Significantly shortened statement:
Throws error:
There is no immediate rush to resolve this for me as I've created a temporary workaround. More curious as to what is causing this.
of
is not a reserved word:However, I did find a reference used within a for loop:
I'm making the assumption that 'of' might be parsed as part of the statement syntax in this case, but really doesn't answer why a function may not have the same name as it isn't a reserved keyword.