define short syntax for async
rssh opened this issue · 1 comments
rssh commented
Define cps.syntax
packages with shortcuts for
- unary_! as a synonym of async
inline transparent unary_![F[_],T](ft:x[F[T](using CpsAwaitable[F]):T = await[F,T](x)
- move ForSyntax here.
This can be useful in two cases:
- for monads, which have no concept of memorization (such as collections and streams).
- when somebody doesn't want to use automatic coloring but wants less verbose syntax.
rssh commented
Also, it will be good to look at the community corpus and think, are we need short syntax for Resource.Using.