3 ms·
Hmm. So C++ operator overloading is a DSL, at least in a sense. It lets you define things like + and * for vectors and matrices, so you can write your code us
by AnimalMuppet 5y ago
Hmm. So C++ operator overloading is a DSL, at least in a sense. It lets you define things like + and * for vectors and matrices, so you can write your code using your usual notation for such things.
But it's a fairly limited DSL, because you can't introduce new (non-C++) syntax.
I hadn't thought of it that way, but I can kind of see it.