Re: use "" as an array key

2016-10-04 Thread Bob Sneidar
2016 at 2:27 AM, Peter TB Brett <peter.br...@livecode.com<mailto:peter.br...@livecode.com>> wrote: "" isn't "the absence of a string", it's a string that's 0 characters long. Being able to use it as an array key is important for being able to represent real-world d

Re: use "" as an array key

2016-10-04 Thread Bob Sneidar
noticed that too. Doesn't seem to hurt anything. Bob S > On Sep 22, 2016, at 10:58 , Matt Maier wrote: > > I find myself in want of a YAML library again. Mark posted some functions > on the forum that I'm debugging > http://forums.livecode.com/viewtopic.php?f=7=21434 >

Re: use "" as an array key

2016-09-24 Thread Peter TB Brett
On 24/09/2016 04:26, Kay C Lan wrote: On Fri, Sep 23, 2016 at 2:27 AM, Peter TB Brett <peter.br...@livecode.com> wrote: "" isn't "the absence of a string", it's a string that's 0 characters long. Being able to use it as an array key is important for being able to

Re: use "" as an array key

2016-09-24 Thread Matt Maier
, Kay C Lan <lan.kc.macm...@gmail.com> wrote: > On Fri, Sep 23, 2016 at 2:27 AM, Peter TB Brett > <peter.br...@livecode.com> wrote: > > > > "" isn't "the absence of a string", it's a string that's 0 characters > long. > > Being able to use it a

Re: use "" as an array key

2016-09-23 Thread Kay C Lan
On Fri, Sep 23, 2016 at 2:27 AM, Peter TB Brett <peter.br...@livecode.com> wrote: > > "" isn't "the absence of a string", it's a string that's 0 characters long. > Being able to use it as an array key is important for being able to > represent real-world data

Re: use "" as an array key

2016-09-22 Thread Peter TB Brett
seems like it shouldn't be possible to use the absence of a string as an array key. Is it supposed to work that way? I'm using 8.0.1 on Windows. "" isn't "the absence of a string", it's a string that's 0 characters long. Being able to use it as an array key is important for

Re: use "" as an array key

2016-09-22 Thread Richard Gaskin
Matt Maier wrote: > Something I discovered while debugging is that "" is being accepted > as an array key. > > It seems like it shouldn't be possible to use the absence of a string > as an array key. Is it supposed to work that way? I'm using 8.0.1 on > Windows. Works that way on Ubuntu 14.04

use "" as an array key

2016-09-22 Thread Matt Maier
I find myself in want of a YAML library again. Mark posted some functions on the forum that I'm debugging http://forums.livecode.com/viewtopic.php?f=7=21434 Something I discovered while debugging is that "" is being accepted as an array key. It seems like it shouldn't be possible to use the