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

You can still have side effects in a static method.

A more functional style, say like that of the one in F#, strongly encourages you to avoid many occasions where side effects may otherwise appear. Look at this fiddle for instance:

https://dotnetfiddle.net/68jAIw



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

Search: