Verbosity and Lines of code

Colin Holgate colinholgate at gmail.com
Fri Jun 30 14:17:03 EDT 2017


The way it is in Director is nice. These are all valid statements:

put “one two three” into v
put the last char of word 3 of v
— “e”

v = “one two three"
put v.word[3].char[v.word[3].length]
— “e"

put [{a:1,b:2,c:3},{d:4,e:5,f:6}] into alist
put alist[2].d
— 4
put the d of alist[2]
— 4

put item 1 of the long date
 -- “Friday"

d = the systemdate
put d.day
 — 30

Whether or not there’s a verbose or dot syntax way to say the same thing, it’s nice to have a choice.






More information about the use-livecode mailing list