Re: Simple Python-like class macro and some python-like procedures (print, input, range, others)

2017-08-28 Thread Krux02
@dom96 I am fairly sure that I submitted a pull request (that got accepted) not that long age that fixed the doc comments.

Re: Simple Python-like class macro and some python-like procedures (print, input, range, others)

2017-08-27 Thread Tiberium
Udiknedormin: yeah, or maybe IRC

Re: Simple Python-like class macro and some python-like procedures (print, input, range, others)

2017-08-27 Thread Udiknedormin
Nice. May we move to github for further detailed discussion?

Re: Simple Python-like class macro and some python-like procedures (print, input, range, others)

2017-08-27 Thread Tiberium
Udiknedormin, I've added lazy evaluation for range - [https://github.com/Yardanico/nimpylib/blob/master/src/pylib/range.nim](https://github.com/Yardanico/nimpylib/blob/master/src/pylib/range.nim)

Re: Simple Python-like class macro and some python-like procedures (print, input, range, others)

2017-08-27 Thread dom96
> Thanks to you I noticed there are finally proper AST nodes for doc-comments I'm fairly sure we had AST nodes for doc comments since forever. > I can't write print as an simple procedure because Nim doesn't have > keyword-only arguments Not quite, you can't write it because you cannot mix

Re: Simple Python-like class macro and some python-like procedures (print, input, range, others)

2017-08-27 Thread honhon
That's neat! Well done.

Re: Simple Python-like class macro and some python-like procedures (print, input, range, others)

2017-08-27 Thread Udiknedormin
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