Getting Library Stacks into Memory
Richard Gaskin
ambassador at fourthworld.com
Sat Jul 9 15:20:23 EDT 2016
J. Landman Gay wrote:
> On 7/9/2016 1:39 PM, Richard Gaskin wrote:
>> After all, how does one express an array in English? :)
>
> "Egg carton". Devin taught me that while brandishing a prop at one of
> our teaching sessions.
>
> put "abcd" into cup 1 of eggcarton "alphabetBlocks"
Conceptually the metaphor works well. But in code I think we're all
grateful for the conciseness of:
put "absc" into alphabetBlocks[1]
Besides, as Mark Wieder suggested, if we were to pursue English-like
patterns for that, once we introduce eggcarton objects we'd be obliged
to add egg objects as well, and decide what a chicken object is. And
after that we'd have to explain to new users which gets initialized
first, the chicken or the egg.
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list