ç¹ã«ä½ãããã®åºå ¸ã¯ããã¾ãã. ããã°ã©ã ã®è¤éãã«å¯¾ãã大å±çã§ç´æçãªææ¨ã¨ãã¦, 表é¢ç©ã¨ã°ã©ãã®æ§é ã¨ããã®ãå人çã«æèãã¦ããã¨ãã話. ãããã code smell ãã©ãå ãã¤ãã¦ããã. 表é¢ç© ããã°ã©ã ã¯æãåç´ã«ã¯ 1 ã¤ã®å ¥åãã£ã³ãã« (å¼æ°) 㨠1 ã¤ã®åºåãã£ã³ãã« (æ»ãå¤) ã§ã¢ãã«åã§ãã¾ã. è¦ããã«é¢æ°ã¨ãããã¨ã§ãã, é¢æ°åããã°ã©ãã³ã°ã«éãã大æµã¯ä¼¼ããããªèãæ¹ãã§ãã¾ã. graph LR yield[ ] -- å¼æ° --> program[ããã°ã©ã ] -- æ»ãå¤ --> return[ ] ä¸æ¹ã§ç¾å®ä¸çã§ä¾¡å¤ã®ããããã°ã©ã ã¨ãªãããã«ã¯å¼æ°ã¨æ»ãå¤ã ãã§ã¯ä¸ååã§, å®éã«ã¯ãã®ä»ã®å ¥åºåãã£ã³ãã«ãå¿ è¦ã«ãªã£ã¦ãã¾ã. ä¾ãã°, å¯å¤ãªå¤æ°ã®èªã¿æ¸ã ç°å¢å¤æ°ã®èªã¿åã ã¦ã¼ã¶ã¼å ¥åã®èªã¿åã ç»é¢ã¸ã®åºå ãã¡ã¤ã«
{{#tags}}- {{label}}
{{/tags}}