[phix] if 'number' then why not 'list' ?
- Posted by _tom (admin) Feb 21, 2021
- 961 views
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