I think this is a valuable effort. Have you checked if the results are the same? I have the impression that chef may be slower. 

I am not sure why withoutSelfLoops may be problematic

Alexandre



Le 27 nov. 2011 à 08:17, Nicolas Anquetil <nicolas.anquetil@inria.fr> a écrit :

Hi,

I want to redefine the soft engineering metrics (in famix-extension-metrics) using MooseChef which is more concise and generic.

But for this I need to remove the implicit withoutSelfLoops from some query.
If anybody has something agains this removal, let him come forth and speak now or remain silent forever and ever.



Here is an example of how nice MooseChef can be.
Consider:

myClasses collect: [:c | c queryAllOutgoingDependencies atClassScope withinMyPackage]

instead of:

myClasses collect: [:c | (c invokedClasses select: [:invoked | invoked packageScope =  self])
                                          union:
                                          ((c superclass isNil not and: [c superclass packageScope = self])
                                                    ifTrue: [{c superclass}]
                                                    ifFalse: [#()])]
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev