Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Can we guarantee that the TYPE_ID numbers will not change? #1982

@certik

Description

@certik

We want to be able to quickly compare types in LPython, see lcompilers/lpython#2351. The fastest way that we were able to find is to just compare the TYPE_ID integers directly. I think this is the best solution, the only caveat is that if SymEngine changes the order, then older LPython with newer SymEngine will break.

One solution is that if we need to change the order, we'll make a major release. Otherwise in minor or patch releases we will not change this order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions