Oscar.jl icon indicating copy to clipboard operation
Oscar.jl copied to clipboard

Why is it called `MPolyRing_dec`?

Open joschmitt opened this issue 3 years ago • 6 comments

I'm almost afraid to ask, but why are all the "decorated" types called ..._dec instead of Dec? For example MPolyRing_dec, MPolyElem_dec, etc. Assuming we all agree that this conflicts with our naming conventions, I could open a pull request to change it. What's the best practice for such changes? const the old types to the new ones? @deprecate them?

joschmitt avatar Feb 22 '22 14:02 joschmitt

I am not familiar with conventions. However, if this is to be discussed, we should at the same rethink the concept of decorated rings as such and may be change it to just graded rings.

wdecker avatar Feb 22 '22 14:02 wdecker

We will need the filtered case in various settings (singularities and lots more), so we should definitely keep it somehow. There also went quite some work into it in particular for modules. One could split into different types for graded and filtered. That will make things more transparent, but there is of course a lot of code overlap between the two cases. So one might again end up with some decorated type behind everything.

jankoboehm avatar Feb 22 '22 14:02 jankoboehm

Is there already some piece of code where I could see the use of the filtered case?

wdecker avatar Feb 22 '22 14:02 wdecker

@joschmitt If it is not urgent, I would wait with the renaming PR.

thofma avatar Feb 22 '22 14:02 thofma

@joschmitt If it is not urgent, I would wait with the renaming PR.

No problem. I wasn't aware of a bigger issue behind this.

joschmitt avatar Feb 22 '22 14:02 joschmitt

On Tue, Feb 22, 2022 at 06:00:16AM -0800, Johannes Schmitt wrote:

I'm almost afraid to ask, but why are all the "decorated" types called ..._dec instead of Dec? For example MPolyRing_dec, MPolyElem_dec, etc. Assuming we all agree that this conflicts with our naming conventions, I could open a pull request to change it. What's the best practice for such changes? const the old types to the new ones? @.***` them?

I felt like it when I did this. No reason at all. Feel free to change at will

-- Reply to this email directly or view it on GitHub: https://github.com/oscar-system/Oscar.jl/issues/1119 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

fieker avatar Feb 22 '22 15:02 fieker

Closed via #1972 .

joschmitt avatar Feb 23 '23 12:02 joschmitt