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

It is undefined behavior in Nim due to compiling to C. https://news.ycombinator.com/item?id=9050999


As stated before in this thread, there _will_ be nil Checks in the future which will result in NilErrors or you can just annotate it with `not nil` right now and it will never be nil. You can also use -fsanitize flags with the clang backend to trap the null dereferences.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: