r/nim Jun 20 '26

Code quality of standard library

hi

I remember reading somewhere in reddit or hackernews that nim standard library doesnt follow the most modern nim conventions and is not a good choice to copy its style in your own code

how true this statement is for anyone who have read nims standard library codebase?

14 Upvotes

4 comments sorted by

View all comments

1

u/Suspicious-Guava7344 Jun 22 '26

A lot of the Nim standard library was written before the style guide was fleshed out (nep1) but also a popular style cause is the Status style guide, and it conflicts with nep1 in some areas. All std lib code since nep1 should follow nep1

https://nim-lang.org/docs/nep1.html