Swift 2 ããæ°ãã«å°å ¥ãããã¨ã©ã¼ãã³ããªã³ã°ã«é¢ããæ©è½ãå®éã®ã¢ããªã§å©ç¨ãããã¨ããã¨ãããã¤ãæ©ã¿ã©ããããããã¨ã«æ°ä»ãããããã®åé¡ã«ã¤ãã¦è°è«ãæ·±ããå®è·µçãªè§£ãæ±ãã¦ããããã¨æãã Which is better? â Optional type or throws func parseInt(string: String) -> Int? func parseInt(string: String) throws -> Int func parseInt(string: String) throws -> Int? æååãæ´æ°åã¨ãã¦ãã¼ã¹ããé¢æ°ã®ã·ã°ãã㣠æååãæ´æ°åã«ãã¼ã¹ããé¢æ°ããã£ãã¨ãã¦ããã®ã·ã°ããã£ã¯ã©ã®ããã«ããã¹ãã ããããæããã«ãnil ãè¿ããã¾ãã¯ã¨ã©ã¼ã throw ãããããªãã¤ã¾ãä¸çªä¸ã®ã·ã°ããã£ã¯ä¸é©åã§ãããæ®ããµã
{{#tags}}- {{label}}
{{/tags}}