Conversation
|
My general feeling wrt phase (and stage, and level) is that these are ways to inject programmability into protobuf which are not necessary giving net spec, and in fact I wouldn't mind obsoleting these options and simplifying But I'm happy to hear other opinions and I don't object to merging code that exposes functionality that is already present. It seems like there are two ways to go about this:
This PR takes the second path (q.v. #2959 (comment)). The syntax represented here feels pretty natural to me, cf. Given the tone of the PR message, I'm going to tag Another thing to consider (though it's a different direction) is reifying this selection into a layer (cf. |
|
To chime in on an old issue, I'd very much be in favor of the first approach. It's quite simple and fits naturally into the mental model of how NetSpec works. So far I'm using a hacked together version of the first approach when I'm programmatically generating experiments with NetSpec. |
This is a first attempt to allow netspec to interact with phases. It is admittedly a bit ugly, so feedback would be welcome.
Here is an example how to use this:
and here is the expected output