Re: named array
- Posted by DerekParnell (admin) Sep 03, 2013
- 2124 views
A side effect is that the function is changing something outside of themselves. Functions without side effects named "pure functions". ... However, it should by all means avoid impurity, if possible. When I'm going to use the maps, I can not write a pure function.
I understand the term 'side effect' in relationship to functional programming and I know what 'pure' functions are. Euphoria is a Procedural Language so if you need to use a Functional Language, you would be better off with Erlang, Haskell, F#, Lisp, OCaml, etc.
It's no good complaining about impurity while using a procedural language paradigm.
On the other hand, you can write pure functions in Euphoria, including map-like structures, but the work involved would probably be counter-productive.