Wed, Sep 24, 1997 at 01:44:47PM +0900 において
Masaki Suketa さん曰く:
> ・コードでやたら self を書かないといけないようだ
今日が python のコードを書いた初日ですが、もうこれで
嫌になってきました。FAQを見ると
6.7. Q. Why must 'self' be declared and used explicitly in method
definitions and calls?
A. By asking this question you reveal your C++ background. :-)
When I added classes, this was (again) the simplest way of
implementing methods without too many changes to the interpreter. I
borrowed the idea from Modula-3. It turns out to be very useful, for
a variety of reasons.
云々とありますので、pythonは設計段階からではなく、後になって
クラスを導入したんですかねー。
--
人生を背負い投げ
菊谷 誠(Kikutani Makoto) kikutani / eis.or.jp kikutani / jdc.ericsson.se
hgf03701 / niftyserve.or.jp http://www.eis.or.jp/muse/kikutani/