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
Sometimes, we have to specify arguments to functions that are not really needed. For example, in function intefaces.
As a dummy example, consider this snippet:
interface Functor<A> { fmap<B>(f: (x: A) => B): Functor<B> } interface MyFnInterface1<B, C> { (x: B, y: B): Promise<C> } interface MyFnInterface2<B, C> { (fn: (x: B, y: B) => C): Promise<C> }
The snippet above could be simplified as the following:
interface Functor<A> { fmap<B>((A) => B): Functor<B> } interface MyFnInterface1<B, C> { (B, B): Promise<C> } interface MyFnInterface2<B, C> { ((B, B) => C): Promise<C> ((B) => (B) => C): Promise<C> }
or, even to this:
interface Functor<A> { fmap<B>(A => B): Functor<B> } interface MyFnInterface1<B, C> { (B, B): Promise<C> } interface MyFnInterface2<B, C> { ((B, B) => C): Promise<C> (B => B => C): Promise<C> }
The text was updated successfully, but these errors were encountered:
It has already been suggested numerous times. See #13152
Sorry, something went wrong.
Duplicate of #3081
No branches or pull requests
Summary
Sometimes, we have to specify arguments to functions that are not really needed. For example, in function intefaces.
Actual
As a dummy example, consider this snippet:
Would be nice to have
The snippet above could be simplified as the following:
or, even to this:
The text was updated successfully, but these errors were encountered: