Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
electrineer29795317d"what a pointer is" <- what does this have to do with the comment? I mean, even C has function pointers, but using one doesn't magically construct a new function.
-
Lensflare17476317dPointers are easy to understand. References are made more complicated than they really should be by dumb language designs such as Java or JavaScript.
-
Hazarth9521317dMan, we should start passing functions as values, so that I can just write the same function again to unregister a bind or check for correct function equality. Who's with me?
-
lorentz15183317dThere shouldn't be an operation that means both referential equality and value equality depending on context in high level languages. Ref and value equality are never interchangeable. These should be different operations, and they should both fail if they're not applicable to the types they're given.
-
lorentz15183317dthe only reason we even call identity "equality" is that on the lowest levels it's implemented as an equality comparison, but it has about as much to do with equality as a concept as if has with jump or return has with pop.
-
ScroogeMacDuck243317dOh, wow! You mean I have to have the appropriate value attached to my dingaling? 🤣
-
melezorus343336317dTo fuel your hating even more, I remind you the existence of symbols. They are also a primitive.
-
awesomeest1209316dIm pretty sure that if that was the reference i was given as to what a pointer is... id need some serious extra help-- and ive known what a pointer is for >20yrs.
-
IHateForALiving2815316d@atheist you place some event listener, forget to remove it when the component is gone, there's your memory leak.
-
melezorus343336316d@IHateForALiving also the reason why we have so many base classes on js frameworks. Even the Custom Elements standard has a default assumptions
Coding lessons 101, it shouldn't be that fucking hard to understand what a pointer is but that's where we currently stand
rant
your mom slurps dicks by value not reference
javascript objects are reference not values