Am Donnerstag, 17. August 2006 21:55 schrieb Chip Salzenberg: > > $S0 = hsh['key'] > > > > with > > > > $S0 = hsh['key'] > > unless null $S0 goto label > > $S0 = '' > > label: > > Indeed. I think we can reduce the pain of dealing with this to the point > where you'll hardly feel it.
A lot of src/string string_ operations are capable of dealing with NULL strings currently [1]. *But* that's AFAIK specificied nowhere, and might just be an accident, i.e. an extra (unneeded/unwanted) check for A NULL argument. A consistent behavior would make all these things just errors, the same as we got with the Null PMC, which has been created for this very reason - the same as a SEGV in C, when accessing a NULL ptr. leo [1] null S0 # this is not '' length I0, S0 # 0 concat S1, S0, "foo" # "foo"