3 ms·
From https://nim-lang.org/faq.html https://nim-lang.org/faq.html : Why is it named proc? Procedure used to be the common term as opposed to a function which i
by cenamus 1y ago
From https://nim-lang.org/faq.html 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.