Re: Why do we separate class/instance methods in the browser?
Posted by K K Subbu on Jul 24, 2017; 6:12am
URL: https://forum.world.st/Why-do-we-separate-class-instance-methods-in-the-browser-tp4956231p4956509.html
On Sunday 23 July 2017 08:34 PM, Tim Mackinnon wrote:
> I find it a straight jacket that we have to click that class button
> just because we want to write what is effectively a constructor that
> occurs to us when we are writing an instance method. Its very jarring
> and breaks your flow to “switch mode” to type one in.
You raise an important issue here. At the time of subclassing, we
separate variables into instanceVariableNames and classVariableNames,
but not with method selectors :-(. Separate tabs or panels (instance,
class) may be a better way to display these methods.
This quirk pops up in textual mode too. "Foo" alone refers to a class
but "Foo>>bar" refers to a instance side method and we have to use "Foo
class>>bar" to refer to the class side method.
Regards .. Subbu