Monthly Archives: January 2014

Scala without covariance

Without covariance  (In presence of Invarinace )  class Test[T]    var x:Test[Any] = new Test[Nothing] //error doom ,what you see   Nothing <: Any, but class Test is invariant in type T.   Verbose : Nothing is subclass of Any but … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

DSL with Groovy

Creating dsl in groovy is easy .For example below dsl is for adding roles and permissions i DSL : And this is code for this dsl to work :

Posted in Uncategorized | Leave a comment