4 ms·
whahaha. i took the exact opposite approach and swore off proxies years ago for exactly this kind of edge case. there's scenarios where they just don't work and
by 8n4vidtmkvmk 4y ago
whahaha. i took the exact opposite approach and swore off proxies years ago for exactly this kind of edge case. there's scenarios where they just don't work and they'll bite you and i don't want to invite more gotchas into my code.
- afiori 4y agoThe author is not interested in writing proxy code, their interest is to allow other to use their classes together with libraries that happen to use proxies.
- 8n4vidtmkvmk 4y agoI guess that's noble to try and make your library compatible. I don't think they're giving up much by dropping native private vars. I'm in the camp of "if this var is documented as private/do not use and you use it anyway and then I change it and your code breaks, then that's on you". i.e. just prefix vars you don't want people to use with `_` or something.