ãã®ã¾ãã夢ã®ä¸ã§ããããã³ã¬ã¯ã·ã§ã³ã®ä¸ããç¹å®ã®ã·ã°ããã£ãæã¤ãªãã¸ã§ã¯ããããåãããããªã³ã¼ãæ¸ãã¦ã夢è¦ããã§ããããããè¦ããã§ã夢ã§ã ã§ããµã¨ç®ãè¦ãã¦(æ·±å¤3æå)ããããã«REPLã§ãããããã£ã¦ã¿ãçµæãæ¸ããã¨æãã¾ãããããæ¸ãã¦ã¿ã¾ãã Structural Subtyping(æ§é çé¨åå)ã£ã¦ä½ã? ä¾ããå ¥ãã¾ããããã¡ã½ããã®ã·ã°ããã£(ååãå¼æ°ã®ä¾ãã°{def mkString (start:String, sep:String, end:String):String}ã¨ããã·ã°ããã£ãæã¤åAãå®ç¾©ããã¨ãä¸è¨ã®ã·ã°ããã£ãæã¤åBãåCã¯Aã®æ´¾çåã¨è¦ãªãããããã§ãã ãã®ããã«ã2ã¤ã®åããã¤ã¡ã½ãããªã©ã®æ§é ã«ãã£ã¦æ´¾çé¢ä¿ã決ã¾ãã®ãStructural Subtyping(æ§é çé¨åå)ã¨ãããã®ã§ãã対ãã¦ãé常ã®extendsãªã©
{{#tags}}- {{label}}
{{/tags}}