Re: List Comprehensions (from Python)
"raptor" <[EMAIL PROTECTED]> writes: | hi, | I haven't used Python... but last days I read some stuff, wanted to compare | both languages for myself and found something interesting. | They are proposing extentinon to Pyhon 2 It's already in Python 2.0. -- http://www.dfan.org
Re: Ordinals, Hashes, and Arrays, oh my
David Green wrote: That's true. But it's got me thinking about the connection between arrays and "associative" arrays. In fact, the user doesn't need to know that a "hash" is implemented with a hash table, and an "array" isn't; and nothing stops you from using numbers as hash keys. I believe Lua treats arrays just like hashes indexed by integers. I don't know if they optimize anything under the hood.
Re: Exegesis2 and the "is" keyword
Peter Scott <[EMAIL PROTECTED]> writes: | I've been reading "is" as a declarative imperative, something which | declares a property of something you are creating. Here it's being | used to modify the properties of something that already exists, and | it reads funny to me. Many properties that one can set at | declaration time are compile time only, yet this usage might suggest | to many people that they can be changed at run time. If you see | what I mean. Clearly we need 'becomes' and 'gets' for mutable properties, in addition to 'is' and 'has' for constant ones. -- http://www.dfan.org