POV-Ray : Newsgroups : povray.off-topic : Innovative open source? : Re: Innovative open source? Server Time
6 Sep 2024 07:15:50 EDT (-0400)
  Re: Innovative open source?  
From: nemesis
Date: 3 Apr 2009 23:20:01
Message: <web.49d6d0beaca2c31cd8a4ca0d0@news.povray.org>
Kevin Wampler <wam### [at] uwashingtonedu> wrote:
> I think any implementation which tries to behave both like a list and a
> hashtable is going to have some inconsistencies when using ints as keys,
> so I actually prefer the approach of keeping the two separate.

Exactly, order shouldn't matter in a dictionary:  it's a set.  There are lists
if one needs order or you can always base a class on dict and replace
__setitem__ and __getitem__.

What matters in Python though is case and D is not the same as d. :P

PHP and Perl are full of inconsistencies.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.