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

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

What is {1,2,3.14} ? (a container containing a sequence of 3 numbers)
What is {"Hello",{1,2,3}} ? (a container containing 1 string and 1 sequence of 3 numbers)

Minor nit-pick: assuming that 'a' and '1' mean the same thing, only one of those can be correct, and I think it's the 2nd.
Minor nit-pick number two: does that mean we now have to describe container and sequence?
Minor nit-pick number three: the phrases "sequence contains" and "sequence containing" work for me, "container contains" and "container containing" not so much.

Yes. Containing 1 sequence of 3 numbers is clearer.

Yes. Trying to explain that structs and classes are also types of sequences is just going to complicate things, since they aren't really treated like other sequences.

Agreed.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu