4 ms·
I wanted that too until I realized they are usually used only in a couple of files in a project, only a handful of times in each. Operator overloading looks nic
by wruza 4y ago
I wanted that too until I realized they are usually used only in a couple of files in a project, only a handful of times in each. Operator overloading looks nice but it isn’t a life changer.
What javascript lacks is a culture of [in]formal protocols which could provide additional semantics. It has some: toString, toJSON, @@iterator, etc. Maybe this is a good thing.