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
-
electrineer30343286d"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.
-
Lensflare17160286dPointers are easy to understand. References are made more complicated than they really should be by dumb language designs such as Java or JavaScript.
-
Hazarth9503286dMan, 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?
-
lorentz15268286dThere 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.
-
lorentz15268286dthe 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.
-
ScroogeMacDuck243286dOh, wow! You mean I have to have the appropriate value attached to my dingaling? 🤣
-
melezorus343614286dTo fuel your hating even more, I remind you the existence of symbols. They are also a primitive.
-
awesomeest1238286dIm 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.
-
IHateForALiving2806285d@atheist you place some event listener, forget to remove it when the component is gone, there's your memory leak.
-
melezorus343614285d@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