[Pharo-dev] Browse anObject?

2014-11-04 Thread Sean P. DeNigris
This one smells funny to me... Object>>#browse ^ self systemNavigation browseClass: self class A less surprising API might be: - Object>>#browseClass - and, Class>>#browse as implemented above What do you think? - Cheers, Sean -- View this message in context: http://forum.world.s

Re: [Pharo-dev] Browse anObject?

2014-11-04 Thread Tudor Girba
I agree. Doru On Tue, Nov 4, 2014 at 7:20 PM, Sean P. DeNigris wrote: > This one smells funny to me... > > Object>>#browse > ^ self systemNavigation browseClass: self class > > A less surprising API might be: > - Object>>#browseClass > - and, Class>>#browse as implemented above > > What

Re: [Pharo-dev] Browse anObject?

2014-11-04 Thread Nicolas Cellier
I guess that the intention was to use it like this Smalltalk browse. World browse. In case you do not know whether a global is a class or not... 2014-11-04 20:43 GMT+01:00 Tudor Girba : > I agree. > > Doru > > On Tue, Nov 4, 2014 at 7:20 PM, Sean P. DeNigris > wrote: > >> This one smells funny

Re: [Pharo-dev] Browse anObject?

2014-11-04 Thread Ben Coman
Sean P. DeNigris wrote: This one smells funny to me... Object>>#browse ^ self systemNavigation browseClass: self class A less surprising API might be: - Object>>#browseClass - and, Class>>#browse as implemented above What do you think? - Cheers, Sean In GTInspector, right clic

Re: [Pharo-dev] Browse anObject?

2014-11-04 Thread Sean P. DeNigris
Ben Coman wrote > I think this shows its fairly well established that 'Browse' on > its own means "view the object's code" I still vote to change it to more clearly reveal the intention. While perhaps not particularly significant in itself, all these little "gotchas" pile up for newbies, and rob

Re: [Pharo-dev] Browse anObject?

2014-11-05 Thread kilon alios
No I like it as it is. Simple and straight to the point. And since browse could apply to a variety of things while browseClass is very specific, similarl to what Ben is saying. I would prefer it for example if I wanted to browse the metaclass of Object to have Object class browse while for the i

Re: [Pharo-dev] Browse anObject?

2014-11-05 Thread Ben Coman
Sean P. DeNigris wrote: Ben Coman wrote I think this shows its fairly well established that 'Browse' on its own means "view the object's code" I still vote to change it to more clearly reveal the intention. While perhaps not particularly significant in itself, all these little "gotchas" pile u

Re: [Pharo-dev] Browse anObject?

2014-11-05 Thread Thierry Goubier
2014-11-05 12:29 GMT+01:00 Ben Coman : > Sean P. DeNigris wrote: > >> Ben Coman wrote >> >>> I think this shows its fairly well established that 'Browse' on its own >>> means "view the object's code" >>> >> >> I still vote to change it to more clearly reveal the intention. While >> perhaps not par

Re: [Pharo-dev] Browse anObject?

2014-11-05 Thread Marcus Denker
> On 05 Nov 2014, at 13:04, Thierry Goubier wrote: > > > > 2014-11-05 12:29 GMT+01:00 Ben Coman >: > Sean P. DeNigris wrote: > Ben Coman wrote > I think this shows its fairly well established that 'Browse' on its own means > "view the object's code" > > I still

Re: [Pharo-dev] Browse anObject?

2014-11-05 Thread Sean P. DeNigris
Ben Coman wrote > I thought… the least surprising would be... > > Object>>#browse > self browseClass This was exactly what I was objecting to. How is #browse sent to anObject not surprising when you mean #browseClass (which already exists)? Saying that "what else could browse mean in this c

Re: [Pharo-dev] Browse anObject?

2014-11-07 Thread stepharo
:) we can rename browse into browseClass. On 6/11/14 00:07, Sean P. DeNigris wrote: Ben Coman wrote I thought… the least surprising would be... Object>>#browse self browseClass This was exactly what I was objecting to. How is #browse sent to anObject not surprising when you mean #bro