I am still pretty new to Nim, but it is fast becoming my #1 preferred language. 
I think it is elegant in some ways. But one thing that feels really cumbersome 
to me is methods for generic "classes", such as this example dictionary:
    
    
    type Dictionary[Key, Value] = ref object
      ...
    
    proc insert[Key, Value](this: var Dictionary[Key, Value], key: Key, value: 
Value) =
      ...
    
    proc find[Key, Value](this: var Dictionary[Key, Value], key: Key): Value =
      ...
    

I have tried to write a "class" macro, but ran into some issues. Is there an 
alternative that I haven't found, or should I just come to terms with this part 
of the language?

Reply via email to