News for hackers. Stuff that matters.
Re:Pyre: Fast Type Checking for Python by kbd on Friday May 11, 2018 @01:13PM (#17049056)
FWIW, static languages have added dynamic typing features as well:

https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...

Re:Pyre: Fast Type Checking for Python by jerf on Friday May 11, 2018 @01:24PM (#17049157)
But I suspect whereas the static type additions to Python will tend to spread throughout your entire system (the more you annotate, the more useful the feature is), the dynamic features of static languages tend to be used in specific places for specific reasons (the less you use the feature and the more you encapsulate it so the dynamism doesn't "escape", the better it works with the program as a whole).
Re:Pyre: Fast Type Checking for Python by cakes on Sunday May 13, 2018 @12:25PM (#17059689)
This was pretty much true when I was last using C#. You would find specific places where you need "an object" (e.g. maybe you want to LINQ over some data in a method) so you could dynamically create it but if you wanted that object to go anywhere outside of scope you had to have a concrete definition.
Re:Pyre: Fast Type Checking for Python by llccbb on Friday May 11, 2018 @01:59PM (#17049475)
Had a similar thought, but around C++.

auto types and lambda functions are the ones that come to my mind. I am sure there are more features making their way into modern C++ versions.

Re:Pyre: Fast Type Checking for Python by symlinkk on Friday May 11, 2018 @02:44PM (#17049831)
Those are completely different concepts. You're confusing dynamic typing with type inference.

Dynamic typing: C# "dynamic" keyword

Type inference: C# "var" keyword, C++ "auto" keyword

Re:Pyre: Fast Type Checking for Python by looki on Friday May 11, 2018 @02:49PM (#17049879)
auto types really don't have anything to do with dynamic typing, in fact I would argue type deduction is an important tool in making static typing more attractive. An example of dynamic typing in C++ would be std::any (although you're still limited by what you can do with the contained object of course, for better or worse).