We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It'd be nice to have some syntax extensions to streamline error handling according to node-convention.
I propose finding a better way to express
var bcryptShortcut = function (data, autocb) { await bcrypt.gen_salt(defer(var err, salt)); if (err) return err; await bcrypt.encrypt(data, salt, defer(var err, hash)); if (err) return err; return undefined, hash; }; await bcryptShortcut("B4c0/\/", defer(var err, encrypted));
For example:
var bcryptShortcut = function (data, autocberr) { await bcrypt.gen_salt(defer(autoerr, var salt)); await bcrypt.encrypt(data, salt, defer(autoerr, var hash)); return hash; }; await bcryptShortcut("B4c0/\/", defer(var err, encrypted));
What do you think? How hard would it be to implement this transformation?
The text was updated successfully, but these errors were encountered:
+1
See my question: http://stackoverflow.com/questions/10665387/how-to-simplify-the-error-handling-in-tamejs
Sorry, something went wrong.
No branches or pull requests
It'd be nice to have some syntax extensions to streamline error handling according to node-convention.
I propose finding a better way to express
For example:
What do you think? How hard would it be to implement this transformation?
The text was updated successfully, but these errors were encountered: