Thanks to you I noticed there are finally proper AST nodes for doc-comments 
(one of the great features in Rust I hated Nim doesn't have). Yay!

Back to your module. I have mixed feelings...

  * class \-- I like it quite a lot, good macro. I've already seen a similar 
one in the past (just after I started coding the same functionality, by the 
way) but the syntax was more Nim-like. Which is good as your way is easier to 
port from Python. Hell, for simple cases copy-pasting is enough!
  * range \-- is a bit unobvious. In loops, it works like in Python3 (iterator 
approach). Outside of loops, it works like in Python2. Not really good news for 
python-style functional programming, I suppose.
  * % \-- are you sure it works exactly like Python modulo? It seems to me Nim 
modulo differs when applied to negative numbers...
  * // \-- thumbs up for alternative in result type (int | float).
  * print and printImpl \-- I wondered if _varargs[string, `$`]_ would not 
suffice but indeed it doesn't.
  * conversions -- I quite like them, very pythonic.



Also, you used BiggestFloat and BiggestInt in parsing but int and float in 
//... Additionally, Python's integers are actually bigints so I'm not sure if 
this choice won't lead to some nasty bugs or inconveniences...

Do you plan to support some equivalences of magical methods (that's apropos of 
bool converter)?

Reply via email to