Skip to content

Ensure all Expressions that get created with List are turned into ListExpression objects, not Expression #1960

Description

@rocky

We have specialized objects for certain compound expressions. ListExpression is one, I think Association and Rule may be others. Maybe Pattern in the future as well.

Either the code needs to always do the right thing, e.g. not ever create an Expression(SymbolList, ...) or the Expression() needs to detect specializations.

And after this is done we should replace expr.has_form(custom-expression-form, None) with isinstance(expr, custom-expression-form)

Activity

  1. added
    ChoreNot a bug per se, but something that should be done to improve the code or its clarity.
    on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ChoreNot a bug per se, but something that should be done to improve the code or its clarity.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions