News for hackers. Stuff that matters.
Re:D Language accepted for inclusion in GCC by int_19h on Wednesday June 21, 2017 @08:41PM (#14609278)
I don't think a "better Python" can be statically typed - dynamic typing, and all the associated runtime tricks that you can do with it, is kinda part of what makes Python distinctive (whether for good or bad, opinions differ there).
Re:D Language accepted for inclusion in GCC by jxub on Thursday June 22, 2017 @06:51AM (#14611298)
Go has this "interface" thing which lets you do duck-typing, and it's checked at run-time, as the types in Python.
Re:D Language accepted for inclusion in GCC by int_19h on Thursday June 22, 2017 @02:51PM (#14614402)
This is consumer-side duck typing. Python also provides producer-side duck typing - you can make any of your objects a duck dynamically, by making them behave like a duck at runtime. I'm not aware of anything similar in Go wrt interfaces.