On Wednesday, July 31, 2013 1:45:42 AM UTC-4, Travis Scrimshaw wrote:

> I don't like factory functions since you call Permutations(blah) and get 
> an object of type Permutations_class, which make the code more difficult to 
> understand wrt type-checking.
>

First of all you shouldn't type check. Second, if you really need to its 
not that difficult to figure out the return type of the factory function. 
Its certainly much easier to understand than instantiating a class and then 
magically not getting an instance of that class.


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to