Is it possible to recover the name of the function from within the function in scala?
scala> def currentMethodName() : String = Thread.currentThread.getStackTrace()(2).getMethodName currentMethodName: ()String scala> def getMeASammy() = { println(currentMethodName()) } getMeASammy: ()Unit scala> getMeASammy() getMeASammy