These are chat archives for ramda/ramda

30th
Nov 2014
Richard Seldon
@arcseldon
Nov 30 2014 02:40
@buzzdecafe @davidchambers thanks for the input. really enjoyed the clojure koans - something like that would be excellent :smile: Wiki format also might work v.nicely for capturing these recipes. regarding unnest, i suppose it is one of those apis that once you know it, it works pretty well. flattenShallow is too wordy, but what is good about that is it aligns the flatten family together. guess we are definitely against the optional boolean arg approach. if we had clone and cloneDeep, then I would tentatively enquire about flatten, and flattenDeep to keep the symmetry (so long as that name isnt actually misleading).
on second thoughts perhaps using flatten to mean a different thing in our API is a mistake..
David Chambers
@davidchambers
Nov 30 2014 03:14
I'd like to remove R.clone and rename R.cloneDeep R.clone. I can't think of a single situation where I've wanted a distinct top-level object which shares references with the source object. Such objects are a source of bugs, in my experience.
Graeme Yeates
@megawac
Nov 30 2014 03:15
+1
I'd also like to make the next version 1.0
I'd leave mixin shallow though
David Chambers
@davidchambers
Nov 30 2014 04:17
Why 1.0, @megawac?
Graeme Yeates
@megawac
Nov 30 2014 04:17
I feel like most of the core is ready
and not having to worry about upgrade patterns too much
David Chambers
@davidchambers
Nov 30 2014 04:18
What do you mean by "upgrade patterns"?
Graeme Yeates
@megawac
Nov 30 2014 04:18
reduce -> foldl
idk, patterns is the wrong word but I feel like the core is ready to be published as a production ready version
Michael Hurley
@buzzdecafe
Nov 30 2014 13:48
before 1.0 i'd like to put in a pr for foldObj, with default-sorted keys.
Michael Hurley
@buzzdecafe
Nov 30 2014 14:15
and i agree that we should move cloneDeep to clone
Graeme Yeates
@megawac
Nov 30 2014 14:16
i still think thats not going to be an issue as most people in my experience use fold on an object to map its values and remap its keys
more over, most objects someone will reduce are usually generated live / from the server
Michael Hurley
@buzzdecafe
Nov 30 2014 14:22
i'll put in a pr and we can discuss
Graeme Yeates
@megawac
Nov 30 2014 14:26
do it
Michael Hurley
@buzzdecafe
Nov 30 2014 14:40
ok, will do
David Chambers
@davidchambers
Nov 30 2014 14:51
I think we're still four or five minor versions away from 1.0. If anything the number of breaking changes has been increasing with each release.