hi there, just wondering: the

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

Copyright © 2013 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland