4 ms·
Not only correct code, but refactorable code. With statically typed languages, you can use tools like Resharper and do all types of refactorings that are guaran
by scarface74 9y ago
Not only correct code, but refactorable code. With statically typed languages, you can use tools like Resharper and do all types of refactorings that are guaranteed safe - unless you're using reflection
I've softened a little bit about scripting languages. They are great for small functions like AWS lambdas and "scripting" like the UserData portion when you're setting up a VM in AWS.
- mabynogy 9y agoBoth static and dynamic typing are useful. They should be available in the same language but that language doesn't exist yet.
- scarface74 9y agoIt does exist. You can define all of your variables as "dynamic" in C#.
- mabynogy 9y agoInteresting. It looks like a variant or an object whose type list is only known at runtime. What I have in mind is a language able to convert functions calls from dynamic to static (and the opposite). If the compiler can infer the type, the call is static else dynamic (with multidispatch for function overload).
- scarface74 9y agoNot the old COM variant type. If I remember correctly, the old COM variant was C struct that wrapped a union of other COM types.