3 ms·
I know that the traditional C++ generics convention of <> is problematic during parsing but Nim’s choice of [] was a bridge too far for me. There was a post ask
by jimbob45 6y ago
I know that the traditional C++ generics convention of <> is problematic during parsing but Nim’s choice of [] was a bridge too far for me. There was a post asking for better syntax on the official forums but it got closed.
- asplake 6y agoPersonally I think [] is genius. I don’t use typing in Python, but when I saw it done there I was delighted. If my_array[idx], why not list[int]? Not to mention the ease with which it can be implemented, overridden, etc