[phix] if 'number' then why not 'list' ?

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

An atom is:

  • number
  • integer

A list is:

  • sequence
  • string

since a sequence is, not quite, a superset of string

For generic tutorial descriptions emphasis on "only two distinct data-types" is a selling point. You just have to understand "atom" and "list". If you just have to use: number, integer, sequence, string

Writing a demo program that uses just number and list gets as simple as it gets. Everyone (like non-programmers) understand what a number is and a what list is--no thinking required.

be well
_tom

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

Search



Quick Links

User menu

Not signed in.

Misc Menu