Counterpoint: Nothing is a method, there are just bits.
Futher counterpoint: Bits don't exist, there are only fluctuating voltages.
Futher counterpoint: Voltages aren't real, they're just changes in a quantum field.
Further counterpoint: Quantum fields are just math, which is best simulated in Python.
Addendum: Python is implemented in opcodes.
Error: Infinite recursion detected. Abort program.
Error: Infinite recursion detected. Abort universe.
JS: Everything is an object
I don't know why but i hate this format of memes
That's because you're in the middle of the meme curve. Once you reach jedi level you'll realise all memes are this meme
Is this just rage bait or what has the middle guy to do with methods?
Depends on where you come from, but methods is defined as functions inside of a class.
Not in haskell… in haskell everything is a function…
Everything is a callable
How is this post controversial bro
Because it's dumb
I mistook this for a philosophy post for a second there
EDIT: real talk, who else loves defining the add operator for things that have no reason to be in a 'sum'?
Gratuitous operator overloading was my favourite thing in C++. You can sort of do it in Rust but it doesn't feel quite so cool to implement a PartialOrd trait on something that isn't ordered.
I had a hand crafted physics computation library back in the nineties, where dividing a distance by a time would give you a speed, then dividing by a time again would give you an acceleration, then multiplying by a mass would give you an energy. It wasn't particularly complicated but it made me happy to program it!
C++ has
mp-units
and Rust hasuom
. Both amazing libraries.The one operator I've found the most use in reimplementing is the indexing operator.
And don't forget, in C++ implementing custom casts is also technically operator overloading.
Sometimes I just log it as "Why would you add these things you idiot?"