Skip to content

Throw an error for particles-in-particles #160

@aplavin

Description

@aplavin

Presumably, it's never intended to have Particles{T} where T contains Particles inside. But such a construction can accidentally happen, eg when making a mistake in Unitful Particles creation.
Currently, it attempts to compute the result, which can hang for a very long time when there are just 2-3 levels of "Particles nesting" with any nontrivial calculation.

If that's possible at least in some reasonable cases, would be nice to add the guardrail and throw some error immediately on construction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions