
On Sun, 18 Dec 2022 at 21:42, Christopher Barker <pythonchb@gmail.com> wrote:
On Sun, Dec 18, 2022 at 9:48 AM David Mertz, Ph.D. <david.mertz@gmail.com> wrote:
In general, I find any proposal to change Python "because then my text editor would need to change to accommodate the language" to be unconvincing.
Personally, I’m skeptical of any proposal to change Python to make it easier for IDEs.
But there *may* be other good reasons to do something like this. I’m not a static typing guy, but it segg do me that it could be useful to subtype strings:
This function expects an SQL string.
This function returns an SQL string.
Maybe not worth the overhead, but worth more than giving IDEs hints SATO what to do.
I believe typing has annotated types that could do this. Paul