From: trans. (T. Onoma) <tra...@ru...> - 2004-09-14 20:45:07
|
On Tuesday 14 September 2004 04:24 pm, trans. (T. Onoma) wrote: > On Tuesday 14 September 2004 03:23 pm, Brian Ingerson wrote: > > Before I saw Oren's #4, I had a proposal. It seemed silly so I > > didn't post it. #4 did most of what I want. Then again, so does #3. > > Anyway my proposal was a modification of #1: > > > > Any untagged non-plain scalar gets an implicit '!' tag. > > > > So then you never use '!', you use quotes (to force a string). I know > > it's rather silly, but sillier things have clicked with people, so I > > throw it out to you. > > Do you mean: > > --- > - 23 # NULL > - "23" # ! > - [] # NULL > - {} # NULL > > --- > - ? "23" provide implicit, how? I thought about this some more (okay, it was all of 10 minutes, but it was= =20 enough). The implicit can still be provided by !, just think of it as a NOT like=20 operator. So !! =3D=3D NULL, (the cancel themselves out, simple!) So if "23= " is=20 already ! then adding another ! means NULL. If that explanation doesn't work for you then make up another one, cause it= =20 don't really matter. It's a magic bullet, no matter how you slice it. Anyway, this is nice. Its mostly like #4, but w/o the concrete type problem. I was wondering if a variation would work too: - 23 # NULL - "23" # '' (empty string) - [] # NULL - {} # NULL Or is that really the same thing? Anyway, I'm +1-ing in #1i direction, now. (I assume that #1 is still out for the count?) =2D-=20 ( o _ =E3=82=AB=E3=83=A9=E3=83=81 // trans. / \ tra...@ru... I don't give a damn for a man that can only spell a word one way. =2DMark Twain |