æ¦è¦ åèè ã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Good Ruby Idiom: and/or operators åæå ¬éæ¥: 2016/02/23 èè : zverok æ¥æ¬èªã¿ã¤ãã«ã¯å 容ã«å³ãããã®ã«ãã¾ããã Rubyã®and/oræ¼ç®åã®è¯ã使ãéï¼ç¿»è¨³ï¼ ã©ã®ãã¥ã¼ããªã¢ã«ãæ¸ç±ã«ããRubyã«ã¯ããä¼¼ã2ã»ããã®æ¼ç®åã&&/||ãã¨ãand/orããããã¨æ¸ããã¦ãã¾ãï¼ãããæä½ç¨ã®&/|ãããã¾ããä»åã¯æ±ãã¾ããï¼ãããããªã2ã»ãããããã®ãã¨ããçç±ã«ã¤ãã¦è©³ããè¿°ã¹ã¦ãããã¥ã¼ããªã¢ã«ã¯ãã¾ãããã¾ããã ä¸é¨ã®ãã¥ã¼ããªã¢ã«ãããã°è¨äºã§ã¯ã&&ã¨||ã§ãã¹ã¦ã®ã±ã¼ã¹ãååã«ãã¼ã§ããããand/orã¯æ··ä¹±ãå¼ã¶ã ããªã®ã§æ±ºãã¦ä½¿ãã¹ããããã¨æ確ã«è¿°ã¹ã¦ãããã®ããããã¾ããããã¦ãã®å ´åãandæ¼ç®åã®åªå é ä½ã=ãããä½ãã¨ããè¦åãè¦ãã¤
{{#tags}}- {{label}}
{{/tags}}