-
-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #18174: Generalize base class construction for functorial constr…
…uction categories This ticket implements the following syntactic sugar for functorial construction categories:: {{{ GradedModules(K) -> Modules(K).Graded() Modules.Graded(K) -> Modules(K).Graded() }}} This makes them behave consistently with `CategoryWithAxiom`. As is noted in the code, the internal logic is very similar, but there seemed at this point to be no good way to avoid the duplication. The first syntactic sugar was actually already partially implemented for `GradedModulesCategory`, so half of the work is just generalizing existing code. The syntactic sugar is not valid for construction categories that take extra arguments like `Algebras`, since there is no generic way to decide what the argument should be used for: {{{ Sets.Algebras(K) -> Sets(K).Algebras() or Sets().Algebras(K) ? }}} URL: http://trac.sagemath.org/18174 Reported by: tscrim Ticket author(s): Travis Scrimshaw Reviewer(s): Nicolas Thiéry
- Loading branch information
Showing
3 changed files
with
135 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters