Moose::Roleã¯Javaã®Interfaceã¨ä¼¼ããããªç©ã ã¨æã£ã¦ããã§ããã大ããªèª¤è§£ã§ããã ã¢ãã³Perlã®ä¸çã¸ãããããèªãã§ãMoose::Roleã¯Traits: Composable Units of Behaviorã®æ¦å¿µã®å®è£ ããããã¨ãããã£ãã®ã§ããã®è«æãèªãã§ã¿ã¾ããã*1ãé常ã«é¢ç½ãå 容ã§ãããP.12 ã® a) 㨠b) ãè¦ãã ãã§ãããã®æ¦å¿µã®é¢ç½ããä¼ããããããªããã¨ãè¦ã¯ãæå®ããæ¯ãèã(requires)ããæ°ããæ¯ãèã(provides)ãä½ããã®ããTraitsã£ã¦ãã¨ã§ãã(ãã ããããã§è¨ãæ¯ãèãã«ã¯ã¢ã¯ã»ãµãå«ã¿ã¾ãã) 誤解ãã¦ããã㨠Moose::RoleãTraitsã¨ãã¦è¦ãªãã¨ããã°ãJavaã®Interfaceã®æ§è³ªã§ãã以ä¸ã®2ç¹ã¯èª¤è§£ã§ã*2ã Moose::Roleã¯ãåãªãã¤ã³ã¿ãã§ã¼ã¹(API)
{{#tags}}- {{label}}
{{/tags}}