News for hackers. Stuff that matters.
Re:A decade of developing a programming language by layer8 on Tuesday November 14, 2023 @04:37PM (#38270149)
What you can do is the opposite, integrate a “dynamic” type into a statically-types language, like C# does: https://learn.microsoft.com/en-us/dotnet/csharp/advanced-top...

This lets you use dynamic typing when you want, and enables more seamless interoperability with dynamically-typed languages.

Re:A decade of developing a programming language by kaba0 on Wednesday November 15, 2023 @12:31AM (#38273661)
Is it not literally the same on a type system level? Of course it could be very different from a user-perspective, as the ratio of `dynamic` will be very low in case of C#.
Re:A decade of developing a programming language by layer8 on Wednesday November 15, 2023 @08:18AM (#38276320)
It’s not the same, because with “dynamic” the client code decides that it wants to use a specific object dynamically rather than statically, whereas with gradual typing it’s the object/class that decides that it now has type annotations. Aside from that, the default is reversed.