Banjo

52 thoughts
last posted Nov. 9, 2015, 7:13 p.m.

31 earlier thoughts

0

Super calls

At first I thought the super call could be something simple like super(x) because, hey, you know what method you want to call (the one you are in) and what to call it on (self). But, I was forgetting that you might be in a method inside a method inside a method. So just saying super wouldn't allow you to specify which super in the current lexical scope you are referring to.

Now I'm thinking self:method(args) to invoke a super method, giving the method name is redundant but not terrible, and the redundancy may help avoid some copy/paste errors at times.

20 later thoughts