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

Neil Conway commented on MESOS-4070:
------------------------------------

I didn't have an explicit use case in mind, but not supporting negative hex 
numbers seems needlessly inconsistent. {{stout}} is intended to be a 
general-purpose library, so only supporting the exact functionality that 
happens to be used by Mesos at the moment is generally not a good rule of thumb.


> numify() handles negative numbers inconsistently.
> -------------------------------------------------
>
>                 Key: MESOS-4070
>                 URL: https://issues.apache.org/jira/browse/MESOS-4070
>             Project: Mesos
>          Issue Type: Bug
>          Components: stout
>            Reporter: Jie Yu
>            Assignee: Yong Tang
>              Labels: tech-debt
>
> As pointed by [~neilc] in this review:
> https://reviews.apache.org/r/40988
> {noformat}
> Try<int> num2 = numify<int>("-10");
> EXPECT_SOME_EQ(-10, num2);
> // TODO(neilc): This is inconsistent with the handling of non-hex numbers.
> EXPECT_ERROR(numify<int>("-0x10"));
> {noformat}



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

Reply via email to