|
|
|
|
|
by amitport
1101 days ago
|
|
I'm not sure what improvments are you suggesting. We are talking about runtime class creation with dynamic methods, while still adding proper static types. There aren't many language allow this level of flexibility. You can probably disallow prototype use with existing tools if that's desired, but it is an advanced tool for advanced use cases (which still exist). |
|
Given:
maybe it becomes: