Closed juancarlospaco closed 5 years ago
What's the difference between proc and func in nim?
https://nim-lang.org/docs/manual.html#procedures-func
func
is kinda Functional proc
, better for mathy stuff where code can be like a math function, stuff enters and stuff returns no other side effects.
:smile_cat:
So.... any news :grey_question: :slightly_smiling_face:
@juancarlospaco thanks for checking in, I actually tried to run it with func and I'm not able to get it to work for some reason but I am able to get it working with proc? (I'm on windows right now, will try on a linux machine soon, which I expect I'll have an easier time with)
import strutils
Not needed.intToStr
Not needed.proc
replaced byfunc
. :cat: