Re: [Twisted-Python] Endpoint composition syntax

2016-10-13 Thread Glyph Lefkowitz
> On Oct 12, 2016, at 7:35 PM, Tom Prince wrote: > > Thinking about it some more, there isn't currently any endpoint descriptions > that have an empty name, so we could have a entirely new syntax that starts > with `:`. If we went in that direction, we'd definitely want to think about > futur

Re: [Twisted-Python] Endpoint composition syntax

2016-10-13 Thread Kevin Conway
> we can just look up until the first ':'; we just need to define a new interface for a new syntax. What do you think of adding a special argument for endpoint strings called "wraps" or "pipe" that tells the parser to recombine the right-hand side and send it back through the parser? For example:

Re: [Twisted-Python] Endpoint composition syntax

2016-10-13 Thread Tom Prince
> This applies more generally; no need for any weird hacks. Any 'new' plugin could just opt in to a different syntax; we can just look up until the first ':'; we just need to define a new interface for a new syntax. I don't think that this provides a good user experience. 1) There are existing e

Re: [Twisted-Python] Endpoint composition syntax

2016-10-13 Thread Glyph Lefkowitz
> On Oct 13, 2016, at 12:47 PM, Tom Prince wrote: > > > This applies more generally; no need for any weird hacks. Any 'new' plugin > > could just opt in to a different syntax; we can just look up until the > > first ':'; we just need to define a new interface for a new syntax. > > I don't th