Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

[Monads] Change Valued to PossiblyValued #11

Open
viboes opened this issue Apr 4, 2014 · 4 comments
Open

[Monads] Change Valued to PossiblyValued #11

viboes opened this issue Apr 4, 2014 · 4 comments
Assignees

Comments

@viboes
Copy link
Collaborator

viboes commented Apr 4, 2014

value doesn't express correctly the fact that the value is optional. optional_value?

@viboes viboes changed the title quid of value_traits [Monads] quid of value_traits Apr 6, 2014
@viboes viboes modified the milestone: Rasperwil Apr 6, 2014
@viboes
Copy link
Collaborator Author

viboes commented Apr 13, 2014

Optional proposal talks about a NullableProxy. I don't like the name as the single required operations are check if there is a value and dereference the value. There is no reset operation.

I think that the name must contain Value and the fact that the value can be there or not, Maybe/Optional/Possibly.

I suggest to define a concept PossiblyValued and rename the traits to possibly_valued_traits.

@ptal
Copy link
Owner

ptal commented Apr 15, 2014

Agreed. Did you consider MaybeValued or MaybeUnexpected? As Maybe is the usual name we give to this monad.

@viboes
Copy link
Collaborator Author

viboes commented Apr 16, 2014

I started with OptionallyValued, and considered MaybeValued. I avoided Maybe and Optional as we have classes that have the same name. I just looked for a synonym.

@viboes
Copy link
Collaborator Author

viboes commented Apr 19, 2014

I suggest to change the title of this issue to Change Valued to PossiblyValued and make it an enhancement.

@viboes viboes self-assigned this Apr 19, 2014
@viboes viboes changed the title [Monads] quid of value_traits [Monads] quid of valued_traits Apr 21, 2014
@ptal ptal changed the title [Monads] quid of valued_traits [Monads] Change Valued to PossiblyValued Apr 21, 2014
@ptal ptal added enhancement and removed question labels Apr 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants