Re: [Pharo-users] self in Nautilus

2017-02-02 Thread stepharong
On Tue, 31 Jan 2017 16:02:38 +0100, Siemen Baader wrote: On Fri, Jan 27, 2017 at 9:11 PM, stepharong wrote: I should tell you that I do not like it at all.Hey students inside comments self means the class and outside the instance! WTF? Which

Re: [Pharo-users] self in Nautilus

2017-01-31 Thread Siemen Baader
On Fri, Jan 27, 2017 at 9:11 PM, stepharong wrote: > I should tell you that I do not like it at all. > Hey students inside comments self means the class and outside the > instance! WTF? > Which behaviour do you no like, Stef? The current or the one we are discussing? > > I

Re: [Pharo-users] self in Nautilus

2017-01-28 Thread Stephane Ducasse
Yes. This trick is handy but totally confusing. I think that self in playground should return nil. because self only makes sense in method body and inspector pane. Stef On Sat, Jan 28, 2017 at 4:50 AM, Ben Coman wrote: > > > On Sat, Jan 28, 2017 at 4:11 AM, stepharong

Re: [Pharo-users] self in Nautilus

2017-01-27 Thread Ben Coman
On Sat, Jan 28, 2017 at 4:11 AM, stepharong wrote: > I should tell you that I do not like it at all. > Hey students inside comments self means the class and outside the > instance! WTF? > > I think that we should have another kind of pseudo variable but not self. > So in

Re: [Pharo-users] self in Nautilus

2017-01-27 Thread stepharong
I should tell you that I do not like it at all. Hey students inside comments self means the class and outside the instance! WTF? I think that we should have another kind of pseudo variable but not self. Hi all, in Nautilus, `self` is always the current class instance. This is great for

Re: [Pharo-users] self in Nautilus

2017-01-27 Thread Siemen Baader
Hi, On Fri, Jan 27, 2017 at 4:09 PM, Denis Kudriashov wrote: > Hi Tudor. > > 2017-01-27 10:23 GMT+01:00 Tudor Girba : > >> > Is there a rationale why `self` in instance view does not raise an >> error or is nil? >> >> That is because you can write:

Re: [Pharo-users] self in Nautilus

2017-01-27 Thread Denis Kudriashov
Hi Tudor. 2017-01-27 10:23 GMT+01:00 Tudor Girba : > > Is there a rationale why `self` in instance view does not raise an error > or is nil? > > That is because you can write: self new and work with an instance. I expect from you some exciting ideas in this direction. :)

Re: [Pharo-users] self in Nautilus

2017-01-27 Thread Siemen Baader
Hi Tudor, On Fri, Jan 27, 2017 at 10:23 AM, Tudor Girba wrote: > > > > > Is there a rationale why `self` in instance view does not raise an error > or is nil? > > That is because you can write: self new and work with an instance. > ok. > > > And, more importantly, could

Re: [Pharo-users] self in Nautilus

2017-01-27 Thread Tudor Girba
Hi, > On Jan 27, 2017, at 9:59 AM, Siemen Baader wrote: > > Hi all, > > in Nautilus, `self` is always the current class instance. This is great for > coding class side methods because we can test code fragments live in the > editor, but for instance side methods I

[Pharo-users] self in Nautilus

2017-01-27 Thread Siemen Baader
Hi all, in Nautilus, `self` is always the current class instance. This is great for coding class side methods because we can test code fragments live in the editor, but for instance side methods I have not seen the usefulness of it. At times it can even be confusing and cause errors since a