{"comment":{"url":"https://api.github.com/repos/olafurpg/directembedding/comments/10240258","html_url":"https://github.com/olafurpg/directembedding/commit/0c88c1877e6c7dbc757138c45e36d0859f4e0072#commitcomment-10240258","id":10240258,"user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"position":23,"line":23,"path":"dsls/src/test/scala/ch/epfl/directembedding/test/Playground.scala","commit_id":"0c88c1877e6c7dbc757138c45e36d0859f4e0072","created_at":"2015-03-17T15:59:59Z","updated_at":"2015-03-17T15:59:59Z","body":"I don't understand why the call to `ConfigurationExample.__ifThenElse` has the raw structure\r\n```scala\r\nApply(Ident(TermName(\"__ifThenElse\")), List(Ident(TermName(\"cond\")), Ident(ch.epfl.directembedding.test.ValDef), Ident(ch.epfl.directembedding.test.NoArgs)))\r\n```\r\nwhile the call to `ObjectExample.justArgs(1)` has the structure\r\n```scala\r\nApply(Select(Ident(ch.epfl.directembedding.test.ObjectExample), TermName(\"justArgs\")), List(Literal(Constant(1))))\r\n```\r\nFor `__ifThenElse`, we could either\r\n1. virtualize it as a select of `ConfigurationExample` (seems like a bad idea) or\r\n2. add a case statement in the `transform` method for `Apply(Ident(...), List(...))` (seems like a good idea). In this case however, I can't see how we extract the `@reifyAs` annotation in `ConfigurationExample`.\r\n\r\nWhat do you think?"}}