On Sun, 18 Dec 2022 at 21:42, Christopher Barker <[email protected]> wrote:
> On Sun, Dec 18, 2022 at 9:48 AM David Mertz, Ph.D. <[email protected]> > 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
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/U22UUM7J22IKDQCQTMHW27AISQ2H2YOY/ Code of Conduct: http://python.org/psf/codeofconduct/
