So many caveats...
One thing that continues to annoy me is that if I say:
a = [ ]
and then for
a[20] = "something"
or
a["something"] = 20
I get an error. I'm sure that there are worlds where this makes sense, but why oh why make me spend cycles trying to figure that out? Just give me what I want.
If strong typing is really necessary, I can deal with that. But either have that or get out of my way. Pretending to have weak typing and then give me type errors is insanity.
And I can deal with C-type arrays. Or untyped associative arrays. But Python seems to want to provide the worst of both worlds: you don't get to define an array size, but you also don't get to use arbitrary names as array indexes. What??
And I could be completely wrong about any and all of the above. But the documentation doesn't clear that up. It's all five layers of indirection. Yes, that works in programs, but my brain can't handle it for documentation. Just give me concrete examples of what to do.
One thing that continues to annoy me is that if I say:
a = [ ]
and then for
a[20] = "something"
or
a["something"] = 20
I get an error. I'm sure that there are worlds where this makes sense, but why oh why make me spend cycles trying to figure that out? Just give me what I want.
If strong typing is really necessary, I can deal with that. But either have that or get out of my way. Pretending to have weak typing and then give me type errors is insanity.
And I can deal with C-type arrays. Or untyped associative arrays. But Python seems to want to provide the worst of both worlds: you don't get to define an array size, but you also don't get to use arbitrary names as array indexes. What??
And I could be completely wrong about any and all of the above. But the documentation doesn't clear that up. It's all five layers of indirection. Yes, that works in programs, but my brain can't handle it for documentation. Just give me concrete examples of what to do.
