About category

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

About category

stepharo
Hi guys

We introduced protocol for sorting methods and package for categories
but we left many users of categories.
I think that it would be good to finish the clean this.
I'm cleaning some of the method level one.
Now I have a question what is a class category? Because it does not look
like a package name

Point category -> 'Kernel-basicObject"
Point package name -> 'Kernel'

Stef


Reply | Threaded
Open this post in threaded view
|

Re: About category

CyrilFerlicot
A category is not a sub classification into the package ?
A category is not to a package what a protocol is for a class ? A way
to have some classification on a package.

On 30 May 2015 at 21:44, stepharo <[hidden email]> wrote:

> Hi guys
>
> We introduced protocol for sorting methods and package for categories but we
> left many users of categories.
> I think that it would be good to finish the clean this.
> I'm cleaning some of the method level one.
> Now I have a question what is a class category? Because it does not look
> like a package name
>
> Point category -> 'Kernel-basicObject"
> Point package name -> 'Kernel'
>
> Stef
>
>



--
Cheers
Cyril Ferlicot

Reply | Threaded
Open this post in threaded view
|

Re: About category

Thierry Goubier
In reply to this post by stepharo
Le 30/05/2015 21:44, stepharo a écrit :

> Hi guys
>
> We introduced protocol for sorting methods and package for categories
> but we left many users of categories.
> I think that it would be good to finish the clean this.
> I'm cleaning some of the method level one.
> Now I have a question what is a class category? Because it does not look
> like a package name
>
> Point category -> 'Kernel-basicObject"
> Point package name -> 'Kernel'

(Point package classTagNamed: (Point package toTagName: Point category))
name -> #BasicObjects

i.e. class category = package name + tag name

Thierry

> Stef
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: About category

Sean P. DeNigris
Administrator
In reply to this post by stepharo
stepharo wrote
Now I have a question what is a class category?
IDK what it is currently, but I wish it was a logical domain tag (or multiple) which had nothing to do with packaging ;)
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: About category

stepharo

>> Now I have a question what is a class category?
> IDK what it is currently, but I wish it was a logical domain tag (or
> multiple) which had nothing to do with packaging ;)

So sleeping on it I realized that we use category has a tag that embeds
the package name.
So I will only clean the method api to use protocol.
I did and lost it.

Stef


Reply | Threaded
Open this post in threaded view
|

Re: About category

stepharo
In reply to this post by Thierry Goubier
thanks thierry (just getting up and I realised that too).

Stef

Le 30/5/15 22:13, Thierry Goubier a écrit :

> Le 30/05/2015 21:44, stepharo a écrit :
>> Hi guys
>>
>> We introduced protocol for sorting methods and package for categories
>> but we left many users of categories.
>> I think that it would be good to finish the clean this.
>> I'm cleaning some of the method level one.
>> Now I have a question what is a class category? Because it does not look
>> like a package name
>>
>> Point category -> 'Kernel-basicObject"
>> Point package name -> 'Kernel'
>
> (Point package classTagNamed: (Point package toTagName: Point
> category)) name -> #BasicObjects
>
> i.e. class category = package name + tag name
>
> Thierry
>
>> Stef
>>
>>
>>
>>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: About category

Sergio Fedi
Does this mean that a class from a Package will be able to have multiple Tags?

The first time I saw Packages + Tags I tried to use multiple tags: 

Example of my initial impression:

Class -> Tags
Car -> Model
CarTest -> Model, Tests
CarFactory -> Factories
CarFactoryTest -> Factories, Tests