- title: essay: Rees by Jonathan Rees
- authors: Jonathan Rees
- url: Rees Re: OO
- refs:
â
ãªããžã§ã¯ãæåãšããã®ã¯, ãã®ãªã¹ãã®ãããããªãµãã»ãããšã㊠å®çŸ©ãããŠããããã . ã€ãŸã, ããªããžã§ã¯ãæåããšããã®ã¯ã¡ãããšå®çŸ©ãããæŠå¿µã§ã¯ãªã!
Literature Notes
ã«ãã»ã«å
åã®å®è£ ãæ§æçã«é èœã§ããããš. äŸãã° C ã Pascal ã§ã¯äœããæ§é äœã§ãããé åã§ãããåžžã«æèããããšã«ãªãã, CLU ã Java ã§ã¯ãã®éããé ãããšãã§ãã.
ä¿è·
åã®äœ¿çšè ããã®å®è£ ãã®ããããšãã§ããªãããš. ããã«ãã£ãŠ,ãµããŸãããå€ããªããã°, å®è£ ãå€æŽããŠãåã®äœ¿çšè ã«åœ±é¿ãäžããªãããšãä¿éã§ã, ãŸããã¹ã¯ãŒãã®ãããªæ å ±ãæŒãåºããªãããã«ãããšãã§ãã.
ã¢ãããã¯ããªã¢ã«ãã£ãºã
é¢æ°ããã©ã¡ãŒã¿ã€ãããŒã¿æ§é ã ããããã®ç°ãªãåã®å€ããšãããšãã§ãã.
ãã©ã¡ããªãã¯ããªã¢ã«ãã£ãºã
é¢æ°ãããŒã¿æ§é ãä»»æã®å€ (äŸ:ä»»æã®ãªããžã§ã¯ãã®ãªã¹ã)ã«å¯ŸããŠãã©ã¡ã¿ã©ã€ãºã§ããããš.
ML ãš Lisp ã¯ãããæã€. Java ã¯é Object ãªåã®ããã«, ãããå®å šã«æã€ãšã¯èšããªã.
å šãŠã¯ãªããžã§ã¯ããªã
å šãŠã®å€ã¯ãªããžã§ã¯ã. Smalltalk ã§ã¯çã ã, Java ã§ã¯ (int çã®ãã) çã§ã¯ãªã.
ã¡ãã»ãŒãžãéãããšã ããã§ãã (All you can do is send a message,
AYCDISAM) = Actor ã¢ãã«
ãªããžã§ã¯ããçŽæ¥ãããããšã¯ã§ãã, ãããšéä¿¡ãã, ãããã¯ãããèµ·åããããšã®ã¿ãã§ãã. Java ã«ããã field ã®ååšã¯ããã«åãã.
ä»æ§ç¶æ¿ = ãµãã¿ã€ãã³ã°
ãµãã€ã®ç°ãªãåã§, äžæ¹ã®åã®å€ã ããäžæ¹ã®åã®å€ãšããŠäœ¿ãããŠãåã®æ£åœæ§ãç Žããªãããšãèšèªãä¿éã§ãããããªãã®.
(äŸ: Java ã®ã€ã³ã¿ãã§ãŒã¹ç¶æ¿).
å®è£ ç¶æ¿, åå©çš ã²ãšãŸãšãŸãã®ã³ãŒããæžããã, ãããšäŒŒãã³ãŒã
(ãã®ã¹ãŒããŒã»ãã) ãå¶åŸ¡ãããæ¹æ³ã§çæã§ãã.
ã€ãŸãã³ãŒããã³ããŒããŠç·šéããå¿ èŠããªã. å¶éããã, ç¹æ®ãªæœè±¡åã§ãã. (äŸ:Java ã®ã¯ã©ã¹ç¶æ¿).
ãé¢æ°ã®ç©å (sum-of-product-of-function) ããã¿ãŒã³
ãªããžã§ã¯ã㯠(å®è³ªçã«) æéã®ç°¡åãªååã®éåããéžã°ããããŒåŒæ°ã第äžåŒæ°ã«åã, ããã«ãã£ãŠã¡ãœãããåŒã³åºãé¢æ°ãšããŠåäœãã.