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

[REBOL] Re: On mutability and sameness

From: sanghabum:aol at: 6-Jun-2001 17:34

Hi Larry,
> Just a quick comment. Tuples are not series. > > >> series? 1.2.3 > == false > >> tuple? 1.2.3 > == true
Yes and No......There seem to be two definitions of Series 1. From the User Guide: Series Series values hold a sequential collection of elements whether characters (string!, email!, url!, etc.), integers (tuple!), bits (binary!), or elements (block!, list!, hash!, etc.). ===== That makes Tuple a Series by Definition 1. But: 2. Also from the manual: Following is the hierarchical classification of REBOL pseudotypes and the datatypes they identify. Note that all datatypes are identifiable with the any-type! pseudotype: any-type
<snip>
series any-block block list lit-path hash paren path set-path any-string binary email file issue string tag url symbol time tuple unset ====== Tuple is not a subtype of Series by Definition 2. Conclusion: Tuple is a Series Datatype but not a a subtype of the Series Pseudotype. That's almost a tonguetwister. I still think it's confusing!
> I think Volker's overview is a good one.
So do I. Something of the sort needs to be incorporated in the Guide, or a FAQ or something. --Colin.