Andrei Alexandrescuãèæ¡ããExpected<T>ã¨ããã¯ã©ã¹ãããã¾Boostã¨C++æ¨æºã«ææ¡ããåããããã¾ãã Vicente Botet Escribaããã¨Pierre Talbotãããç¾å¨éçºãé²ãã¦ããexpectedã¯ã©ã¹ã¯ãã¨ã©ã¼å¤ã¨æ£å¸¸å¤ãæ±ç¨çã«è¡¨ãåã§ããboost::optionalãboost::variantã®äºç¨®ã§ãHaskellãScalaã«ããEitherãã¨ã©ã¼ã«ç¹åããããã®ã§ããHaskellçã«ã¯MonadErrorã«ç¸å½ããããã§ããç§ã以åãä¼¼ããããªã®ãæ¸ãã¾ããï¼ãã¨ã©ã¼è¨±å®¹åãä½ã£ããã ã¼ãå²ããé©åã«ãã³ããªã³ã°ãããå®å ¨ãªå²ãç®é¢æ°ã«ä¾å¤ã使ãã¨ã以ä¸ã®ãããªã³ã¼ãã«ãªãã¾ãï¼ struct DivideByZero: public std::exception { ⦠}; double safe_div
{{#tags}}- {{label}}
{{/tags}}