Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [TYPE] weird return value

From: maximo:meteorstudios at: 21-Apr-2004 15:38

> > length? [/home/http/run/cohen/birds] ;== 5 > > > > while a path like this gives: > > > > length? [home/http/run/cohen/birds] ;== 1 > > > > A path cannot start with "/". > > But it should return invalid data or refinement!
I meant and invalid data ERROR... cause doing:
>> type? /dog
== refinement! so IMHO the return value is erronous. one should not have to do: if (datatype? type? value) [do something] whenever they do generic language extensions. type? is such a core function!!!!!! for dialecting. type? should raise an error if /a/b/c is considered illegal code or refinement! if its legal. I can see that it would be usefull for code argument parsing or refinement sets storing ... -MAx