Please excuse the funny title, I am using it in analogy with “zip bomb“. Is it possible to create a scala source file, that will, when compiled, produce a large number of class files (or a very large single class file)? Is there any way the size of the class files could grow faster than linearly with the size of the source file?
Share
Specialization is inherently exponential in the number of type parameters specialized.
Pattern matching can also involve a lot of code duplication for complex cases (though I find it difficult to predict exactly when this will occur).