Re: [docs and wiki] How many data-types do we emphasize?

new topic     » goto parent     » topic index » view thread      » older message » newer message
_tom said...

five

object|number|integer|sequence|string

Phix has five.

┌───── object───────┐ 
│ number │ sequence │ 
│   │    │   │      │ 
│ integer│ string   │ 
└───────────────────┘ 
 
    object 
---------------- 
|              | 
number         sequence 
     |                | 
     integer          string 
 
        object 
         /\ 
        /  \ 
  number    sequence 
       |           | 
     integer      string 
 

This is a good question. At first, I'm like, the classical three. Start with the atom. Tell them you can group atoms in sequences. And objects are an umbrella term for any and all types.

However, I like the option for five because Phix actually has functionality that deals with the string type.

I think the 5 types is the best option.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu