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
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 <stepharo@free.fr> 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
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
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
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
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 -- View this message in context: http://forum.world.st/About-category-tp4829542p4829554.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
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
participants (5)
-
Cyril Ferlicot -
Sean P. DeNigris -
Sergio Fedi -
stepharo -
Thierry Goubier