iota icon indicating copy to clipboard operation
iota copied to clipboard

Primitive Io types

Open dariusf opened this issue 11 years ago • 2 comments

Lists/sequences in particular. At the moment the results of messages like slotNames can't be printed or dealt with.

dariusf avatar May 17 '14 14:05 dariusf

When we get lists supported, will this code:

coordinatesToBuy := list(list(0,0), list(1,1), list(2,2), list(3,3), list(4,4), list(5,5), list(6,6))

... be equivalent to this JavaScript?

var coordinatesToBuy = [[0,0], [1,1], [2,2], [3,3], [4,4], [5,5], [6,6]];

nwinter avatar Jul 16 '14 00:07 nwinter

Possibly, but the array objects will need to respond to Io messages as well (=> have a send method), so I might have to wrap them in an additional object or use prototypes somehow.

dariusf avatar Jul 16 '14 08:07 dariusf