I realize that there is or should be a feature freeze pending the release of 
Nim 1.0, so this is a feature proposal for whatever comes after.

One of the interesting things about D's 
[templates](https://dlang.org/spec/template.html) is the ability to 
parameterize over a code block, not just a type or function. I think this 
feature or something like it would fit well with Nim (obviously using the new 
keyword **generic** and not **template** ), and provide a bit more expressive 
power to the generic system.

I'd be interested in what other Nim users think. I wanted to have such a 
feature when I was experimenting with a hand rolled OOP for Nim.

Reply via email to