Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

one of the strangest and most grep-hostile approaches to identifiers that I have ever observed is Nim ignoring both case and underscores in an effort to allow everyone to write code in their preferred style:

https://nim-lang.org/docs/manual.html#partial-caseminusinsen...



Nim even provides a dedicated grep-like tool to search for identifiers regardless of the style https://nim-lang.org/docs/nimgrep.html


And it works pretty well, coming from 6+ years of experience. It's not that strange if consider case insensitive filesystems and email addresses. But on the internet you only hear the opinion of the loudest minority.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: