Denis Mikhaylov

Results 48 comments of Denis Mikhaylov

@AyushSingh13 do you know any workaround for `prototool format`?

The workaround is to provide an instance of `Tag[In]` manually. I'm not sure why it works though. My guess is that it has to do something with later macro expansion...

So this also works ```scala trait Foo { case class In() case class Out(in: In) object Out { def layer(implicit inTag: Tag[In]): ZLayer[Has[In], Nothing, Has[Out]] = ZIO.service[In].map(Out(_)).toLayer } } ```

@rkuhn did you evolve your vision on this topic somehow?

Hi! I do understand that throwing exceptions is kinda natural for Actors. But, don't you think that [this](https://github.com/akka/akka/blob/master/akka-typed/src/main/scala/akka/typed/persistence/internal/PersistentActorImpl.scala#L113) could be more pure and total if result is wrapped in `Option`-like...

@patriknw I understand that, my concern is that it requires user code to throw an exception rather than returning something representing an error

@raboof The need emerges naturally when you start to follow your types. Let's say we have `Door` entity with two possible states `Closed` and `Open`. And two `DoorEvent`s corresponding to...

@raboof of course the example is over simplified. From my experience there a lot of this impossible pairs of value. Developers at work used to ask what to do in...

@rkuhn `An event is a fact, deal with it.` - this obvious statement has triggered something in my perception of the problem 😉 Given that it is already persisted and...