[go-nuts] Re: Non-method funcs

2023-03-29 Thread nc
Just adding a quick note: It turns out this topic has been discussed before. I thought I tried to search but perhaps I had been using the wrong keyword. If you search for "pure" or "purity" you will see a lot of stuff. I am hoping to review it all soon and see if I can come to any conclusions b

[go-nuts] Re: Non-method funcs

2023-03-27 Thread Henry
Hi, Try to write readable code. If your function modifies any of its parameters, make it obvious. Name the function properly and/or write a comment. If the function does not modify its parameters, make it obvious too. There is no hard rule on this one. Sometimes it makes sense to use pure func