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
What should happen if you re-declare a salsa input with a new type? Currently, it succeeds, and the old setter remains, but the getter is replaced, so setting and getting the old type throws an error during the getter:
What should this do? If you declare a new input with a different signature, that's fine. But if it has the same signature with different output type? What should that do?
Throw an error when declaring x with a new type?
Automatically erase the old setter method for x? (And maybe print a warning, just like redefining a method throws a warning in julia? -- though i guess we'll already get the warnings automatically from julia if this is done in a module, so maybe no need for the warning...)
I think I'm leaning towards automatically, silently, erasing the old setter method.
The text was updated successfully, but these errors were encountered:
What should happen if you re-declare a salsa input with a new type? Currently, it succeeds, and the old setter remains, but the getter is replaced, so setting and getting the old type throws an error during the getter:
What should this do? If you declare a new input with a different signature, that's fine. But if it has the same signature with different output type? What should that do?
x
with a new type?x
? (And maybe print a warning, just like redefining a method throws a warning in julia? -- though i guess we'll already get the warnings automatically from julia if this is done in a module, so maybe no need for the warning...)I think I'm leaning towards automatically, silently, erasing the old setter method.
The text was updated successfully, but these errors were encountered: