[
https://issues.apache.org/jira/browse/MESOS-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14517637#comment-14517637
]
Ian Downes commented on MESOS-994:
----------------------------------
The intent here was to refactor the existing {{string os::getenv(string,
bool)}} to {{Option<string> os::getenv(string)}}, i.e., only have a single
version.
Ben's first patch above is good and the 2nd just needs updating.
> Add an Option<string> os::getenv() to stout
> -------------------------------------------
>
> Key: MESOS-994
> URL: https://issues.apache.org/jira/browse/MESOS-994
> Project: Mesos
> Issue Type: Improvement
> Components: stout, technical debt
> Reporter: Ian Downes
> Assignee: Greg Mann
> Labels: newbie
>
> This would replace the common pattern of:
> Option<string> = os::hasenv() ? Option<string>(os::getenv()) : None()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)