- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
hi there, just wondering: the
Fri, 2012-02-03, 15:06
hi there,
just wondering:
the compiler is able to optimize unused local symbols away. is there a way (via plugin, maybe?) to make it flag all unused symbols and return values as compile errors (except unit)?
unused return values make no sense when coding functional, so in a case like this:
val fullList = getFullList
val filtered = fullList.filter(...)
passResult(fullList)
or
val x = ...
x.filter(...)
next(x)
the compiler would notify me that something is wrong