Re: Promote Euphoria - MAKE A PAGE ON WIKIPEDIA
- Posted by petelomax Sep 22, 2020
- 1481 views
What I meant earlier by Euphoria having "pass by value semantics",
The problem is that when someone from a completely different language sees "pass by value", they may assume that passing a 1000x1000 array has to shove 4MB or 8MB on the call stack.
And if they see "pass by reference", they will assume it can be (accidentally) modified in-situ, without explicitly returning it.
So we should use "copy on write": just as fast as pass by reference, but eliminates the associated danger of accidental corruption.
We probably do have different checkout revisions of Euphoria.
That was based on recollections of my experiences of translating Eu code to Phix, but now I can't find an actual example... (felt sure there were a couple in GtkEngine.e or similar)
I take it you already know that for your last example, this would work (and unlike Eu, Phix has variable length slice substitution, so you can put anything anywhere)
countries &= {"Sweden"}