Movatterモバイル変換


[0]ホーム

URL:


Named code blockes

James_Althoff at i2.comJames_Althoff at i2.com
Mon Apr 23 19:49:01 EDT 2001


Alex Martelli writes:Sure, naming something and passing the name as a stand-infor the thing itself IS syntax at some level.  So what?  Do youoften use, say, unnamed classes, or modules, or attributes ofclass instances, or feel that being able to leave them unnamedwould be "a very powerful programming device" wrt havingto name them?!  So what's so different about code blocks...?Alex<jim response>In Java unnamed (anonymous, inner) classesare used all over the place in Swing-GUI code.Not advocating -- just pointing it out.  :-)</jim response>


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp