Hacker News new | past | comments | ask | show | jobs | submit login

You are correct in saying that Nim does have C style pointers (ptr keyword). These are unsafe, but are meant to be used as part of the FFI. So when developing ordinary applications you should not be using them, unless you absolutely have to.

Nim also has references (ref keyword) which are traced by the GC and therefore safe.




Does nim allow statically flagging procedures as unsafe to assist in the separation of ffi and safe procedures?




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: