[Python-ideas] Re: Extending LiteralString or Literal with structural validation

2022-12-21 Thread Ricky Teachey
On Tue, Dec 20, 2022 at 11:17 PM Stephen J. Turnbull < stephenjturnb...@gmail.com> wrote: > Ricky Teachey writes: > > > This isn't to say it should definitely be added to the language, that's > a > > tough hurdle. But boy would I have used it. > > IIUC, Mathew's idea doesn't need to be added to

[Python-ideas] Re: Extending LiteralString or Literal with structural validation

2022-12-20 Thread Stephen J. Turnbull
Ricky Teachey writes: > This isn't to say it should definitely be added to the language, that's a > tough hurdle. But boy would I have used it. IIUC, Mathew's idea doesn't need to be added to *the* language (the one defined by the Language Reference). It needs to be added to the languages used

[Python-ideas] Re: Extending LiteralString or Literal with structural validation

2022-12-20 Thread Ricky Teachey
Chiming in to say this is a really neat idea and I would definitely have used this in the past, especially when doing programming where it would have been much more useful to know about errors at coding time and not at runtime. This isn't to say it should definitely be added to the language, that'