|
Posted by Neredbojias on 04/10/06 17:25
To further the education of mankind, Davιmon <"davιmon"@nospam.com>
declaimed:
> Neredbojias arranged shapes to form:
....
>> In computer-related languages, the first thing is usually the "0"
>> thing. Javascript, for example, numbers the initial item in the
>> images array (-and all arrays) "0". It can be argued that a zero
>> item should be an empty item but the logical fact is that even an
>> empty item is one part of the set of "whatever" selected from all
>> possible parts of the set of "whatever". An empty list is
>> conceptually still a list if originally defined so and not nothing
>> (-using the double negative in its correct form.)
>
>
> Ok, so say you've got an array in PHP, Perl, Javascript or whatever,
> and you're going to output it to HTML. If the array is empty - should
> we output nothing at all because there is no list, or output <ul></ul>
> to denote that the set is there?
What is output is irrelevant to the discussion. Sometimes you may wish to
have a list populated with "0"s, sometimes not. The significant thing is
that the array, even if empty, is defined and, hence, exists.
--
Neredbojias
Infinity can have limits.
Navigation:
[Reply to this message]
|