-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alwaysEmptyObject and alwaysEmptyArray do not always return empty array or object #97
Comments
Thank you for the catch! I like the |
...although we must wait for Ramda release which will contain |
@tommmyy Gladly do so when they decide to cut a release! Although we could write Your call. |
@nfantone ok, agreed. You can temporarily add thunkfify function. Thank you! |
@tommmyy I was trying to get a PR together for this today and found out that I cannot install the project on a fresh clone (running on macOS, The installation for ❯ git clone [email protected]:nfantone/ramda-extension.git
❯ cd ramda-extension
❯ npm i
> [email protected] install /Users/nfantone/Development/js/ramda-extension/node_modules/fsevents
> node install
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
[...bunch more...]
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12
gyp ERR! System Darwin 17.6.0
[...even more...] Removing |
@tommmyy Just found out that you guys are using workspaces. "workspaces": [
"packages/*"
], So, |
Output from
alwaysEmptyArray
andalwaysEmptyObject
cannot be trusted to be always empty. Specially if their outputs are being passed around as inputs to third party libraries. This can lead to hard to track bugs and odd behaviors.I propose we either:
R.clone
of theemptyArray
oremptyObject
each time:R.thunkify
function to create a point-free reusable factory of clones and implement otheralways*
functions based off of it.The text was updated successfully, but these errors were encountered: