3 ms·
> You can override just about anything in Python, including the meaning of accessing a property. Can't you do this in JS as well?
by viklove 7y ago
> You can override just about anything in Python, including the meaning of accessing a property.
Can't you do this in JS as well?
- tynorf 7y agoAs far as I know, JS does not have the equivalent of Python's descriptor protocol[0]. This is notably different from setter/getter methods. [0]: https://docs.python.org/3/howto/descriptor.html https://docs.python.org/3/howto/descriptor.html