[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-lambda-dev
Subject: Re: Multiple return
From: Per Bothner <per () bothner ! com>
Date: 2014-01-22 22:12:17
Message-ID: 52E04241.3070403 () bothner ! com
[Download RAW message or body]
On 01/22/2014 01:36 PM, Jed Wesley-Smith wrote:
> Either style solutions force you to deal with error conditions, whereas a
> multiple return does not.
People may be talking about two different but related things:
(1) Multiple return values.
(2) Multiple return "continuations", including how to
encode and detect error returns.
Handling Either is useful for (2).
Returning Pair (or in general: tuples) is useful for (1).
--
--Per Bothner
per@bothner.com http://per.bothner.com/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic