Hacker News new | ask | show | jobs
by zmmmmm 2603 days ago
You don't have to sacrifice type safety, that's a python problem. Other languages (eg: Groovy) accomplish the same thing in a type-safe way (see @Delegate annotation [1]).

http://docs.groovy-lang.org/2.4.9/html/gapi/groovy/lang/Dele...

1 comments

In D some of that can be done with a Proxy mixin https://dlang.org/phobos/std_typecons.html#Proxy