Closed xThaid closed 2 months ago
The enable
argument is currently positional only. You could write:
method(m, None, C(0), data=123)
Which is not great. But if it wasn't positional only, the enable
name couldn't be used for an argument, and also calls with the enable
written in the middle of other arguments would look weird.
Currently, using m.If
is preferred to using the enable
argument.
I see now. It seems that we could remove enable
argument altogether in favor of m.If
, as enable
arg is not used widely in coreblocks.
I am closing this issue for now.
It is impossible to specify
enable
signal when calling a method with keyword arguments, i.e.The current code treats
enable
as another argument and then we get an error: