Meine Herren!
Ferner:
http://www.2ality.com/2012/03/converting-to-string.html
http://www.2ality.com/2011/03/javascript-values-not-everything-is.html
Für die lese-faulen werf ich mal noch dieses Video hinzu:
http://www.2ality.com/2014/02/video-fake-operator-overloading.html
Es geht dabei eigentlich nur oberflächlich um Operator-Überladung, und eigentlich viel mehr um die Interna von toString()
und valueOf()
.
--
“All right, then, I'll go to hell.” – Huck Finn
“All right, then, I'll go to hell.” – Huck Finn