- About Scala
- In the Enterprise
- Scala Community
- Language Research
- In the Press
- The Scala Team
- Scala's Prehistory
- Contact Us
- Learning Scala
- Tour of Scala
- Scala API
- Setup & Getting Started
- Programming Guides
- Other Guides
- Code Examples
- Scala Developers
compiler crash on large methods (constructors)
Mon, 2011-10-31, 22:33
we had migrated on Scala one of our ongoing products, where we heavily
use data-definition in code. And encountered systematic problems with
exceeding limits on method-code size. Those is pretty easy when you
try to initialize pack of complex data-descriptors for further use.
Most annoying with constructors where you have no real way to solve
it. Correct me if I'm wrong.
May be Scala compiler should:
1). Provide clear error messages for this case, so user atleast can
detect what one of thousands of modules broke at this time.
2). Transparently split large constructors in pack of hidden methods.
Leaving only calls in constructor body - thing which user is not able
to do it himself with val initialization.