On Fri, Feb 15, 2013 at 4:06 PM, Daniel James <notifications@github.com>wrote:

> In src/test/scala/DatomicDataSpec.scala:
>
> > +import scala.concurrent.util._
> > +import scala.concurrent.duration.Duration
> > +import scala.concurrent.duration._
> > +import java.util.concurrent.TimeUnit._
> > +
> > +import datomisca._
> > +import Datomic._
> > +import scala.concurrent.ExecutionContext.Implicits.global
> > +
> > +@RunWith(classOf[JUnitRunner])
> > +class DatomicDataSpec extends Specification {
> > +  "DatomicData" should {
> > +    "extract KW from DRef" in {
> > +      val ns = Namespace("foo")
> > +      DRef(ns / "bar") match {
> > +        case DRef.IsKeyword(kw) if kw == KW(":foo/bar") => success
>
> I make a quick attempt, but there is no way to write:
>
> case DRef.IsKeyword(KW(":foo/bar")) => …
>
> ?
>
> I get:
>
> [error] DatomicDataSpec.scala:34:
> macro method KW is not a case class constructor, nor does it have an unapply/unapplySeq method
> [error]         case DRef.IsKeyword(KW(":foo/bar"))  => success
>
>
i also tried but no way to use a Macro in pattern matching right now :D


>  —
> Reply to this email directly or view it on GitHub<https://github.com/pellucidanalytics/datomisca/pull/10/files#r3029757>.
>
>