Re:A DSL in 5 Languages: Ruby, Python, PHP, C#, Java
by jacquesm on Tuesday August 03, 2010 @01:46PM
(#1571989)
Overloading basic operators is the road to hell. Yes, you can do wonderful and elegant things but when it goes wrong your whole mechanism for analysing what you look it is screwed up because the more experience you have in a language the more you tend to be on autopilot for stuff like that.
'test your assumptions' suddenly expands to include checking if basic language operators still do what you expect them to do.
and
v2 = vec_add(v1,v3);
really isn't that much better than
v2 = v1 + v3;
I know this is not a popular opinion but that's how I've always felt about it and those that complain about how difficult languages like c++ care usually painted themselves in a corner by excessive use of such features.
'test your assumptions' suddenly expands to include checking if basic language operators still do what you expect them to do.
and
really isn't that much better than I know this is not a popular opinion but that's how I've always felt about it and those that complain about how difficult languages like c++ care usually painted themselves in a corner by excessive use of such features.