Structures

Glenn Linderman v+python at g.nevcal.com
Tue Nov 4 01:18:45 EST 2008


On approximately 11/3/2008 5:28 PM, came the following characters from 
the keyboard of Aaron Brady:
> On Nov 3, 5:38 pm, "Paulo J. Matos" <pocma... at gmail.com> wrote:
>   
>> On Mon, Nov 3, 2008 at 10:19 PM, Aaron Brady <castiro... at gmail.com> wrote:
>>     
>>> On Nov 3, 3:45 pm, Ben Finney <bignose+hates-s... at benfinney.id.au>
>>> wrote:
>>>       
>>>> "Paulo J. Matos" <pocma... at gmail.com> writes:
>>>> Take care with broad sweeping statements about "every other language",
>>>> or even "most other languages". They are usually flat-out wrong:
>>>> there is a stunning variety of different approaches and concepts in
>>>> programming languages, with very little common to even a majority of
>>>> them.
>>>>         
>>> Yea, verily.  How many languages do you think that is?  Feel free to
>>> count C and C++ as different ones.
>>>       
>> Well, I wouldn't dare to say I know a lot of languages but the ones I
>> do provide mechanisms to define structures / records: C, C++, Scheme,
>> Common Lisp, Haskell, SML, Ocaml.
>>     
>
> I don't know even half of those.  What about Perl?  Does anyone know
> that?
>   

structs in Perl are generally implemented as hashes, which is similar to 
a Python dict.

-- 
Glenn -- http://nevcal.com/
===========================
A protocol is complete when there is nothing left to remove.
-- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking




More information about the Python-list mailing list