Scala has dynamic compilation? -


i have found many pages saying scala doesn't have dynamic compilation feature, whereas have achieved same using twitter util library. wrote scala code calling eval function mentioned lib , create scala class @ runtime.

example val obj = eval[myscalatrait](new file("flat file having scala code"))) 

can please tell me dynamic compilation 1 better scala or groovy. want keep scripting part in flat file , @ run time create class. looks both solving problem, want see would best?

i can't tell groovy, i'm using dynamic compilation of scala code in several projects. works flawlessly, compiler may take bit of warm-up time, don't expect give fantastic low latencies in "real-time" situations.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -