Re:MonkeyType: A system for Python that automatically genera...
by guggle on Saturday March 21, 2020 @12:05PM
(#22647456)
Tons of libs wouldn't work this way I guess, probably including stuff in the standard library. So you could really just use a subset of the Python ecosystem. I'm not sure it's worth the effort.
Re:MonkeyType: A system for Python that automatically genera...
by dharmab on Saturday March 21, 2020 @12:29PM
(#22647668)
The standard library tends to work pretty well in general, but common libraries like boto will have problems.
Re:MonkeyType: A system for Python that automatically genera...
by raverbashing on Saturday March 21, 2020 @12:14PM
(#22647535)
Sure, you could also replace the indentation with open and close brackets, replace some keywords and change the standard lib to be like Java.
Or you could use Java which it seems is what you wanted to use in the first place and leave Python alone.
Re:MonkeyType: A system for Python that automatically genera...
by BiteCode_dev on Saturday March 21, 2020 @01:01PM
(#22647911)
Yes, a language defined by a spec and PEP. And they define the way typing is done.
If you do it differently, you are not implementing python.
Re:MonkeyType: A system for Python that automatically genera...
by nick_meister on Saturday March 21, 2020 @04:35PM
(#22649831)
Thanks for your reply :)
Couldn't a Python interpreter enforce type checking and raise errors whenever a type doesn't match? I'd be happy to use such an interpreter in many scenarios.