Can Scala macros access the expected return type of an application, e.g. getting `Foo` given
val x: Foo = myMacroApplication
/cc @xeno_by
-
-
Replying to @propensive
@propensive not at the moment. What use case do you have in mind?2 replies 0 retweets 0 likes -
Replying to @eugene_burmako
@xeno_by Just a whimsical experiment! I'd like to be able to write `val x: Foo = instantiate` and have it call Foo's constructor.2 replies 0 retweets 0 likes -
This Tweet is unavailable.
-
This Tweet is unavailable.
-
Replying to @jco1 reply 0 retweets 0 likes
-
This Tweet is unavailable.
Replying to @jco
@jco Here's a rough gist of what I tried. I didn't even involve macros. https://gist.github.com/propensive/624df1423c27bee56535 … @xeno_by
5:24 AM - 3 Dec 2014
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.