[llvm-dev] [RFC] Error handling in LLVM libraries.

Lang Hames via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 15 18:12:46 PDT 2016


Hi All,

An updated version of this proposal has been committed as r263609. Thanks
very much for all the discussion and feedback.

Once the dust has settled and any issues that survived pre-commit review
are cleared up I'll start writing a more thorough usage document.

Cheers,
Lang.

On Tue, Feb 23, 2016 at 5:30 PM, Lang Hames <lhames at gmail.com> wrote:

> Ahh - that makes sense. Thanks. :)
>
> - Lang.
>
> On Tue, Feb 23, 2016 at 12:26 PM, Rafael EspĂ­ndola <
> rafael.espindola at gmail.com> wrote:
>
>> >> The main differences are
>> >> * This will hopefully be used.
>> >> * TypedErrorOr is really a TypedError or T. The situation before was
>> not
>> >> that ErrorOr was std::error_code or T.
>> >
>> > I don't follow that second point. As I see it, TypedErrorOr<T> and
>> > ErrorOr<T> are identical except for two points: TypedError replaces
>> > std::error_code, and as a consequence TypedErrorOr is only movable, not
>> > copyable.
>>
>>
>> That is the case now. Sorry, Mchiael and I were talking about ancient
>> history when ErrorOr<T> was *not* an std::error_code or T.
>>
>> Cheers,
>> Rafael
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160315/b3816008/attachment.html>


More information about the llvm-dev mailing list