IFTE odd behaviour
|
10-11-2019, 08:52 PM
Post: #8
|
|||
|
|||
RE: IFTE odd behaviour
(10-11-2019 08:36 PM)Claudio L. Wrote: I think when the list is empty, list processing should be disabled and the empty list should simply be considered an object, and judged either {} = true, or {} = false by (some) definition. Just define it, document it, and done. Definitely not return 0 in my opinion.But is this consistent with other list processing? I don't have my Prime handy, but what is {} + 1? I suspect it's {}. To my mind, it would make sense to define list processing such that: DoSomething(list, other arguments) is the same as: Code: result = {} |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)