> I think this is neither clearer nor nicer than `let keys = 
> toSeq(myTable.keys)`

That's an old story about [red/blue 
functions](https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/)
 and it's already being discussed here.

> At the very least it wastes memory and allocations

Of course, and I said so. I did that consciously, to sacrifice performance in 
non-critical paths and gain in reducing cost of development and ease 
maintenance.

> Instead of bunch of helper procs which may never be reused

True, but not in my case. As I use my own nim std, which is designed in that 
way (basically a clone of Ruby STD library). It was surprisingly easy to 
implement and has very little code, I spent maybe a two or tree days to write 
it. So, in my case, I constantly do reuse these (and others) helpers.

Reply via email to