Scala @deprecated annotation
When in Scala you want to deprecate a method, use the
@deprecated( description: String, since_version: String )
tag, example:
@deprecated( "use getFoo", "1.5" ) def getFuu = {...}
Another suggestion: When you plan to substitute a method successively, write its name uncompletely! (of course, still understandable)
It will be better then, because you could make a mental note that is a function to improve
Docs:
http://www.scala-lang.org/api/current/index.html#scala.deprecated
Written by MeerKatDev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Scala
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#