Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I still do not understand why this cannot be done via a Variant type. Also it doesn't explain why Dart 2 has a similar feature.


> I still do not understand why this cannot be done via a Variant type.

Makes little difference, either way you need a magical type since it has to allow any method call at compile time, and then requires enough RTTI that it can check for and dispatch method calls at runtime. Whether you call it Variant or dynamic has no relevance.


Think of dynamic as a different word for Variant.

The semantic differences for OLE2 Variants vs C# dynamic mostly only exist in implementation protocols.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: