Cool! I ran it and got similar results.
If performance is your concern, use Nim methods.
I benchmarked them vs procs and closures and I found out that they are only 3
times slower than regular proc:
[Bench](https://github.com/mratsim/Arraymancer/blob/master/benchmarks/implementation/proc_method_closure_bench.nim).
Don't run it on the
Araq, should I be avoiding the use of `method`? I generally consider it useful,
especially as it allows dynamic dispatch through dispatch trees as opposed to
function pointers. Due to performance concerns, I am often (unreasonably?)
averse to function pointers.
* * *
Here's my two cents:
I ba
I haven't made up my mind yet. `vtref` and `vtptr` are about giving Nim
interfaces, yes. But `concept` is still to rough to base yet another feature on
top of it and larger OO projects in Nim are full of `method` already, so
removing it would be a slow painful process.
I'm reading the concept documentation in the devel branch and I noticed the new
(I think) descriptions of vtref and vtptr. Are these intended to replace
method? I haven't seen these features discussed on the forum yet. From the
brief description, it appears that these would provide interfaces, a