These are chat archives for boostorg/hana

7th
Feb 2016
Louis Dionne
@ldionne
Feb 07 2016 16:30
I’ll fix it, thanks.
Jason Rice
@ricejasonf
Feb 07 2016 19:48
wrt to #175, and I'm not pushing for this, but...
keys(map) == unpack(map, make_tuple ^on^ first)
why not keys(map, fn) == unpack(map, fn ^on^ first)
where the default behaviour still uses make_tuple
then the user could do something like keys(map, forward_as_tuple) and they explicitly ask for a container of references
Louis Dionne
@ldionne
Feb 07 2016 19:53
Because most algorithms that return a sequence actually follow the same pattern. For example, filter could also be made to call an arbitrary function object with the filtered elements instead of returning a sequence. This is the idea behind the Fit library.
I just think it makes for a more complex interface.
Jason Rice
@ricejasonf
Feb 07 2016 19:53
right
Jason Rice
@ricejasonf
Feb 07 2016 20:10
I did know that about Fit, I've only looked at it briefly.