ã¾ã¤ãã¨ããã²ããã(Matzããï¼ãRubyKaigi2016ã®åºèª¿è¬æ¼ã§èª¬æãããRuby 3ã®Soft Typingã«ã¾ã¤ãã誤解ãæ§é çé¨ååã«é¢ãã話ã§ãã
ãã¼ããstructural subtypingã¨ããã¯ã¿ã¤ãã³ã°ã¯åããã®ãªãã ããããâ Yukihiro Matsumoto (@yukihiro_matz) 2016å¹´9æ8æ¥ https://t.co/5Rv86piThC wikipediaã«ããã¨ä¼¼ã¦éãªãç©ã®ããã§ããã https://t.co/VwIg39h5M0â INADA Naoki (@methane) 2016å¹´9æ8æ¥ ãã®è©±é¡ã«ã¤ãã¦è£è¶³ãã¦ããã¾ãããªããåã¯TAPLè±è½çµãªã®ã§ãã¾ãæ£ç¢ºæ§ã¯æå¾ ããªãã§ãã ããã èæ¯ Ruby Kaigi 㧠Matz ã Ruby3 ã«åãã¦èãä¸ã®éçåã«ã¤ãã¦è©±ãããããã§ãã å°ãåããã Python ã§ã Guido ã Dropbox ã§ã®å¤§éã®ã³ã¼ããã¼ã¹ãæ¹åãã¦ããããã« type hinting ãã»ããã¨ãããã¨ã§ PEP 484 ãå§ãã¾ãã
ç¹å¾´é¢æ° æ¬ç 究ã§ã¯ä»¥ä¸ã®ãããªåç´åä»ãè¦åãå¼±ããè¦åãç¹å¾´ã¨ãã¦ç¨ããï¼T-True, T-False ãé¤ãï¼ã ãªããåä»ãè¦åã«ããã¦åç°å¢ãé½ã«èæ ®ãã代ããã«ã å注éä»ãæ§ææ¨ã«ããã¦åä¸å¤æ°ã®é ç¹ããã¼ã¸ãããã¨ã§ã åä¸å¤æ°ã«ã¯1ã¤ã®åããå²ãå½ã¦ãããªããã¨ãä¿è¨¼ãã¦ããã è§æ¬å¼§å ã¯å¦ç¿ï¼äºåã¬ã¦ã·ã¢ã³åå¸ã®åæ£ã 0.1 㮠対æ°äºå¾ç¢ºçãææ¥éä¸æ³ã§æé©åï¼ã«ããå¾ãããéã¿ã§ããã å¼±ããè¦åã®éã¿ã¯æ£ã¨ãªããåä»ãã«æç¨ãªè¦åã§ãããã¨ãå¦ç¿ãããã T-True ------------- [1.3052] T-False -------------- [1.3346] true : Bool false : Bool x : T1 E2 : T2 x : T1 E2 : T2 T-WeakAbs1 -------------------- [0.564
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}