You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alexander Rojas (JIRA)" <ji...@apache.org> on 2015/08/06 14:20:04 UTC

[jira] [Commented] (MESOS-2757) Add -> operator for Option, Try, Result, Future.

    [ https://issues.apache.org/jira/browse/MESOS-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14659914#comment-14659914 ] 

Alexander Rojas commented on MESOS-2757:
----------------------------------------

Can you guys explain the rationale behind this? I feel adding this operator gives the sense that the underlying type is a pointer while it is actually not.

Personally I think it settles a bad precedent on how to use operators overload.

> Add -> operator for Option<T>, Try<T>, Result<T>, Future<T>.
> ------------------------------------------------------------
>
>                 Key: MESOS-2757
>                 URL: https://issues.apache.org/jira/browse/MESOS-2757
>             Project: Mesos
>          Issue Type: Improvement
>          Components: libprocess, stout
>            Reporter: Joris Van Remoortere
>            Assignee: Benjamin Mahler
>              Labels: c++11, option, stout, twitter
>
> Let's add operator overloads to Option<T> to allow access to the underlying T using the `->` operator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)