Hi, I've been using (and enjoying) Slick 3 a bit.I find that I'm using DBIO.sequence often, on long DBIO-composing expressions. I think the code would read a lot better if I could write expr.sequence, e.g., act.flatMap(...).sequence. Of course not every DBIO can be sequenced, so you could either do it the way scala collections .toMap works, with implicit evidence, or you could provide it as an extension method with an implicit class.Thoughts?
--
---
You received this message because you are subscribed to the Google Groups "Slick / ScalaQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalaquery+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalaquery/d3570425-525d-418f-9adb-151b07011cf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It would either take implicit evidence that it's a type that can be sequenced, similar to Scala collections .toMap. Or it would be enriched on with an implicit class, so you just move the type constraints there.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalaquery/0b327dc0-009f-4be5-a4a1-2fa5ed55d38e%40googlegroups.com.