nt/README.md

12 lines
660 B
Markdown
Raw Normal View History

2026-01-25 09:36:15 +10:00
# NixTypes (nt)
2025-12-14 14:35:15 +10:00
## Conventions
2026-01-25 09:36:15 +10:00
1. Avoid the `with` keyword like your life depends on it!!
Every LSP I've tried has handled them terribly. Not to mention it absolutely
2025-12-14 20:45:49 +10:00
pollutes the scoped namespace ;-; Just stick to writing out `let ... in`. And **iff**
you **absolutely** need it to condense code in a meaningful way, then isolate its
use to a very **very** small scope. Not your entire file!
2026-01-25 09:36:15 +10:00
2. All names/identifiers should be written in **camelCase**, except *"Types"* (aka specifically structured attribute sets).
Which should be written in **PascalCase**. **Typeclasses** should be written in **PascalCaseWithApostrophe'**.