-
Notifications
You must be signed in to change notification settings - Fork 35
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
Alternative syntax #373
Comments
I don't like the idea of using utf8 symbol you can't easily write from the keyboard and have to copy paste (μ). const { seq, par } = require('metasync');
const f = seq(f1, par(f2, seq(f3, f4), f5), f6);
f((err, result) => {
console.dir(err, result);
}); |
I saved proposal from @primeare here just for notes, @lundibundi |
@lundibundi I like arrays too, because it all other syntax will finally save calls to data structures (most likely those arrays) and then will iterate executing |
FWIW, even if you don't setup AltGr or whatever it's called on your system (which you probably do, because you can't even enter em-dashes (—) from the keyboard otherwise; on Macs, for example, it is set up by default, so µ is just Option+m), you can enable Greek input method and enter µ as switch to Greek, m, switch back to English. I agree that a non-ASCII name shouldn't be the only one for a function, but a convenient Unicode alias does sound like a good idea to me. |
Well, if it's an alias I'm fine. I don't want a unicode symbol to be the only way of accessing the function. |
@primeare why |
Do you mead |
@primeare please prepare PR so we can test it in CI and compare with current implementation syntactically and by performance. |
Syntax idea by @primeare, modifications by @tshemsedinov
Known problems:
μ(f3)(f4)
in example.The text was updated successfully, but these errors were encountered: