6 ms·
>The fact that all static languages are adding an Any type means the discussion is settled. They really aren't, though. No statically typed languages which sta
by theon144 6y ago
>The fact that all static languages are adding an Any type means the discussion is settled.
They really aren't, though. No statically typed languages which started off as such, to my knowledge, have added an Any type (casting magic notwithstanding). You must be thinking of TypeScript and other "gradually typed" languages, where it's a necessity for interop with existing code.
The rest of your comment, unfortunately, does not really put forth any coherent argument, so I would tend to weakly agree with the parent comment.
- joelbluminator 6y agoI meant C# dynamic type actually. So I was wrong to mention Any.
- pjmlp 6y agoWhich was added to support COM variant types as main goal, and as side effect of trying to make the CLR a good target for Python and Ruby, an effort that has mostly died and is kept around just for backwards compatibility.
- deleted 6y ago[deleted]
- joelbluminator 6y agoQuick Google shows this thing is still being used, for quite a few use cases. Maybe it's not super popular but what do u base it dying out on? https://code-maze.com/advanced-csharp-dynamic-type/#whyusedynamic https://code-maze.com/advanced-csharp-dynamic-type/#whyusedy...
- pjmlp 6y agoIts current support in .NET Core and closed issues with won't fix. https://github.com/dotnet/csharplang/discussions/158 https://github.com/dotnet/csharplang/discussions/158
- joelbluminator 6y agoIt's baked into the language and still used, so... There was a real need/use case for it.
- oalae5niMiel7qu 6y agoMicrosoft QuickBASIC was fully statically typed. Its successor, Visual Basic, had a VARIANT type. Then VBScript was derived from that, and it was fully dynamically typed.