You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Presumably, it's never intended to have
Particles{T}
whereT
containsParticles
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.
The text was updated successfully, but these errors were encountered: