On 11/08/2011 02:35 AM, Chris Angelico wrote:
On Tue, Nov 8, 2011 at 4:09 PM, Lie Ryan<lie.1...@gmail.com>  wrote:
<SNIP>
I much prefer the "everything's an object" notion. C's array literals
are just as weird (although in C, you can directly dereference a
literal character array - "ABCDEFG"[note_idx] will give you a note
name as a char)
Hey, in C you can also do

     note_idx["ABCDEFG"]

and get the selected character as if you had written what you showed. Plenty of opportunity in C to write illegible code.

--

DaveA

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to