Repository navigation
General support for Starred syntax in the parser + support for few simple cases in blue functions - #710
General support for Starred syntax in the parser + support for few simple cases in blue functions#710paugier wants to merge 11 commits into
Conversation
sounds like a good idea to me, thanks! |
|
I agree that for this case, list should be much simpler! My plan was to work on the parser to support Starred syntax that I think is more generally useful. |
|
Also, in SPy, Should they become something else than just a generic to allow I seems to me that this is a different work that what I planned with this PR. But it can be interesting! |
oh right, didn't think about it. Yes, we need to invent something to support
agreed. If your goal is to implement |
f87a298 to
c916b50
Compare
483a93b to
45b9c19
Compare
|
I think this is ready for a first review. I don't know how to organize the tests and where to put them. I would also need feedback on the implementation. |
I'd like to work on the support for
OpSpec(impl_str, [*m_args])(parser and interpreter).I think it is doable with current SPy and that it will be needed for "enough metaprogramming capabilities to implement e.g. dataclasses" (see https://fluiddyn.pages.heptapod.net/spy-book/metaprog-dataclass/ for the long term goal).
Note that this PR is not about
*argsin red functions.