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

From https://nim-lang.org/faq.html :

Why is it named proc?

Procedure used to be the common term as opposed to a function which is a mathematical entity that has no side effects. And indeed in Nim func is syntactic sugar for proc {.noSideEffect.}. Naming it def would not make sense because Nim also provides an iterator and a method keyword, whereas def stands for define.



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

Search: