zio / zio-flow

Resilient, distributed applications powered by ZIO
https://zio.dev/zio-flow
Apache License 2.0
142 stars 39 forks source link

Sketch prototype that lifts ordinary Scala code to ZFlow / Remote using Scala 3 macros #143

Open jdegoes opened 2 years ago

jdegoes commented 2 years ago

A prototype that is incomplete could demonstrate the feasibility of lifting ordinary Scala code into ZFlow:

ZFlow.define {
  if (2 + 2 == 4) "foo" else "bar"
} : ZFlow[Any, Nothing, String]
vigoo commented 2 years ago

Depends on https://github.com/zio/zio-flow/issues/225