Re: [Activetcl] split doing two different things
by Jeff Hobbs other posts by this author
Apr 8 2008 12:02PM messages near this date
view in the new Beta List Site
Re: [Activetcl] split doing two different things
|
Re: [Activetcl] split doing two different things
Bahr, Michael wrote:
> > indeed, that _is_ different than ("a", "b", "c", ""). However, the
> > original data was:
> >
> > "a,b,c,"
>
> The original data was ...Ã?121314Ã?121314Ã?121314Ã? where Ã? is the
> delimiter which is the same as Jeff's a,b,c, that is <cr> terminated,
> like a line of text being read.
>
> > How do you express "undef" in a stringified representation of data?
> > Hint: only if you pre-define a means to do so, defining a semantic
> > rule to the data _after_ it's been parsed. Otherwise, it _is_ an
> > element that is just an empty string at the end. Which is, exactly
> > what Tcl gives you.
>
> Well then I have to disagree because an empty string implies that
> something is/was there. Analogous to writing a string then deleting
> it in a field, a zero-byte string remains. But we now that is not
> the case. However a better representation would be NULL because we
> know that nothing is there except a carriage return. So how do you
> express a NULL? I think Tcl is presupposing that something is there.
Ah ... the meaning of NULL. This is a looong discussion, most recently
a small pitched battle occurred on tcl-core for what NULL means in code,
use, etc. Without a programming problem context, there is not right or
wrong answer.
Jeff
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Gene Osteen
Jeff Hobbs
Flavio Salgueiro
Michael Bahr
Jeff Hobbs
Michael Bahr
Dossy Shiobara
Michael Bahr
Dossy Shiobara
Michael Bahr
Jeff Hobbs
Enrico Herzke
Michael Bahr
Jeff Dinsmore
Michael Bahr
Gene Osteen
Jeff Dinsmore
Enrico Herzke
|