2 ms·
Color me skeptical :) The reason why unnamed operators work so well for math code is that their meaning is already well established. OneColor + AnotherColor do
by fauigerzigerk 8y ago
Color me skeptical :) The reason why unnamed operators work so well for math code is that their meaning is already well established.
OneColor + AnotherColor does not have any obvious meaning. If colors are RGBA vectors, it could be vector addition. But is that what your blend operation does?
What's wrong with:
BlendedColor = blend(OneColor, AnotherColor)
- Mister_Snuggles 8y agoI agree, this is where you have to be careful. The meaning makes sense to me which, for a one developer codebase, is OK, but it's not something I'd want to do in a codebase supported by a larger team. I expect that in a more complete product that even the term "blend" would have multiple meanings.