Swoorup Joshi

Results 76 comments of Swoorup Joshi

> #115 How would the creation of such type look like? I have been needing this in a quite of bit of places, and I ponder if I am better...

It's a pretty common pattern. I normally privatize the constructor as well and have the module create the type. ```fsharp module Domain type TodoID = private TodoID of int module...

Not sure why exhaustive match is not always preferred? This is the approach rust goes with, if match is used as an expression. I dislike sprinkling the language with attributes...

Looks like could potentially be done using reflection magic and extension functions?

Have to add that consuming the API in this form: `https://github.com/GT-CHaRM/CHaRM.Backend/blob/master/src/CHaRM.Backend/Schema/Item.fs` makes it much more simpler and easier to implement than the current form.

I managed to have something worker, but would be nice if Odin provides this out of the box. **Local.scala** ```scala import cats.effect.{IO, IOLocal, MonadCancel} import cats.kernel.Monoid import cats.syntax.all.* trait Local[F[_]:...

wondering if this should also allow for when to actually perform snapshotting? i.e every event or every nth event. Would also like to propose, `subscribeFrom(offset:Long)` to get the state and...

> I think it should be fine to jump to the export clause if it's more complex, but it would be cool to jump to the original if the export...

This happened on my multi-project folder. I can reproduce quite easily. But I can't seem to recreate an isolated enough example :/ I'll post it here when I am able...

Tried the latest change and got this ```shell java.lang.ClassCastException: class woof.core.bot.animal.dsl.AnimalConfigBuilder cannot be cast to class woof.core.bot.animal.dsl.AnimalConfigDsl$AnimalConfigBuilder (woof.core.bot.animal.dsl.AnimalConfigBuilder and woof.core.bot.animal.dsl.AnimalConfigDsl$AnimalConfigBuilder are in unnamed module of loader java.net.URLClassLoader @18e69ca8) at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)...