Result å (é¡ä¼¼ãããã®ã¨ã㦠Either Monad ã®æ¹ãæåããããã¾ãã) ãå°å ¥ããå ´åãã¢ããªã±ã¼ã·ã§ã³å ¨ä½ã®è¨è¨ãå¤ããããå ¨ç®æãæ¸ãæããå¿ è¦ã¯ããã¾ããã neverthrow ã¯é¨åçã«ä½¿ç¨ã§ãå½±é¿ç¯å²ãéããã®ã§ãå±æçã«ä½¿ãå§ãããã¨ãã§ãã¾ãã (Rust ã®ãããª) Result å ã¨ã¯ ãã£ããè¨ãã¨é¢æ°ã®å¦çã®çµæã¨æå¦ã 1 ã¤ã®å Result<T, E> ã§è¡¨ãããã®ã§ãã(T ã¯æå¾ ããçµæã®åã E ã¯ã¨ã©ã¼ã表ç¾ããå) çè ã¯è©³ããã¯ãªãã®ã§ããã Haskell çã«ãã Either<L, R> ã¨ã¯å³å¯ã«ã¯éãããã§ã(Either ã¯ä¸¡æ¹ã®å¤ã使ç¨å¯è½ã§ãããã¨ãåæã¨ãã¦ããï¼) åè: Rust ã§ã¯ãªããEither åã§ã¯ãªã Result åãæ¡ç¨ãã¦ããã®ã neverthrow ã¨ã¯ TypeScript ã§
{{#tags}}- {{label}}
{{/tags}}