These are chat archives for boostorg/hana

12th
Feb 2016
Jason Rice
@ricejasonf
Feb 12 2016 03:29
in the docs the 'Initial value' of hana::value is a little misleading since it is a vanilla function
Louis Dionne
@ldionne
Feb 12 2016 16:49
I’ll fix it, thanks.
Uh wait, no it’s not sugar.
It really is tag-dispatched.
Jason Rice
@ricejasonf
Feb 12 2016 16:51
oh i meant that it is not a high order function
... i dont think
Louis Dionne
@ldionne
Feb 12 2016 16:57
Can you provide a link to the docs you are referring to please?
Just to be sure we’re talking about the same thing.
at_c is kind of the same way
Louis Dionne
@ldionne
Feb 12 2016 17:33
Ok, what’s the problem with both of them?
hana::value is documented as being template <typename T> auto value = []() -> decltype(auto) { return tag-dispatched; }.
That seems accurate to me?
Jason Rice
@ricejasonf
Feb 12 2016 17:35
mabye I'm being a noob, but the lambda makes it look like it could be used like a function object
at_c actually has a note stating this though
tiny, tiny nitpick
lol sorry
Louis Dionne
@ldionne
Feb 12 2016 17:37
OH
Jason Rice
@ricejasonf
Feb 12 2016 17:37
wait.. is it a function object?
that's why value_of exists right?
"Equivalent to value, but can be passed to higher-order algorithms."
Louis Dionne
@ldionne
Feb 12 2016 17:39
Correct.
I’ll add a note to value saying it can’t be passed to higher order algorithms"
Added note in boostorg/hana@18346fd
Jason Rice
@ricejasonf
Feb 12 2016 17:51
thanks :grinning:
Louis Dionne
@ldionne
Feb 12 2016 17:51
Well, thanks to you actually.
Jason Rice
@ricejasonf
Feb 12 2016 21:58
index_if.hpp
detail/wrong.hpp
hash.hpp
remove_at.hpp
I think these are vestigal in map.hpp
in pr/hash_map
Louis Dionne
@ldionne
Feb 12 2016 22:09
Fixed locally; thanks a lot. I’ll push when the current CI finishes.