The merge function is redundant?

prothero at earthlearningsolutions.org prothero at earthlearningsolutions.org
Fri Jan 18 14:27:57 EST 2019


Folks,
I’ve been following this discussion, barely. I don’t use merge, but when I need to form a command from several variables, I create the command as a text string and use do to execute it. 

So, when I look it up in the dictionary, I see a fairly simplistic description with nothing resembling the code being discussed in this thread. 

So I’m thinking: “What’s with the square brackets?”

I haven’t looked at the link that Kee posted, (I’m having breakfast at the beach)  but would like to make a request for the dictionary entry to be expanded. 

Best,
Bill

William Prothero
http://ed.earthednet.org

> On Jan 18, 2019, at 10:33 AM, kee nethery via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I’m confused. Can someone explain why merge function exists when the put function works just as well?
> 
> merge( [[ 1 + 2 ]] = 3)
> vs
> put 1 + 2 && “= 3”
> 
> What is it that merge can do that a put cannot do? Just asking because I don’t want LiveCode to end up like Perl where there are so many completely different ways to do the exact same thing that one person’s perl code can be unreadable to another equally talented Perl coder.
> 
> Kee
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list