Re:The impoliteness of overriding methods
by killahpriest on Wednesday December 19, 2012 @02:37PM
(#4944325)
Shouldn't it be this.balance ?
[ Parent
| on HN ]
Re:The impoliteness of overriding methods
by masklinn on Wednesday December 19, 2012 @03:02PM
(#4944473)
In javascript yes. Munificent probably got a bit confused with java (that's what he seems to be using in the rest of the post, and from what I remember it's his historical go-to language) or with Dart (I don't know if dart mandates `this` for self-attributes)
Re:The impoliteness of overriding methods
by munificent on Wednesday December 19, 2012 @04:09PM
(#4944848)
Ha, yes, you're exactly right. I'll fix that in the post. :)
Dart does indeed allow you to omit "this." which is really really nice.