Was playing with adding __slots__ to pymbolic expressions on the attrs branch. That doesn't work with default arguments, since it considers them class attributes and dataclass gets confused.
Very few expressions had that issue though, mostly just CommonSubexpression and NaN, and this fixes it here if we ever want to try it!
Was playing with adding
__slots__
to pymbolic expressions on theattrs
branch. That doesn't work with default arguments, since it considers them class attributes anddataclass
gets confused.Very few expressions had that issue though, mostly just
CommonSubexpression
andNaN
, and this fixes it here if we ever want to try it!