6

Inspired by Haskell API Search Engine I begun to wonder what is the right way of finding names of things in Scala library. For example let's assume I need some string substation, like search and replace. StringOps has no such thing. Google doesn't help either, because these terms are very general, and manually traversing documentation isn't much fun.

My question is, where do experts look when they are seeking a particular function?

This should be practical enough to use it in everyday work.

Przemek
  • 687
  • 1
  • 6
  • 8
  • 3
    Isn't this question covered with http://stackoverflow.com/questions/2873286/scala-hoogle-equivalent ? – VonC Jan 25 '11 at 22:34
  • All that stuff can get real messy thanks to implicit conversions (that is, if you want to find implicitly defined functions/methods, too). – Raphael Jan 27 '11 at 20:57
  • See also http://stackoverflow.com/questions/6700331/how-to-search-for-methods-in-scaladoc-globally – Aaron Novstrup Jul 15 '11 at 17:07

1 Answers1

4

I do agree that a Hoogle like search engine for Scala would be great. Until there is such a tool, from another question:

I suggest using the Reference Index

You can see the whole thing at nightly Scaladoc

Community
  • 1
  • 1
pedrofurla
  • 12,763
  • 1
  • 38
  • 49
  • Sadly, this is only available for the nightly. When will the Scala people learn? – Rafe Kettler Jan 26 '11 at 07:05
  • @Rafe Kettler: Here you can find Scaladoc for current stable release http://www.scala-lang.org/api/current/index.html – tenshi Jan 26 '11 at 08:31
  • 1
    @Rafe Scala 2.8.1 and older did not have a reference index, because the code that does it was not ready in time to get into that release. What do you expect "Scala people" to do? – Daniel C. Sobral Jan 26 '11 at 10:44
  • @Daniel use the reference index for the stable build as well as the nightly. I don't see what's stopping them. @Easy that has no reference index – Rafe Kettler Jan 26 '11 at 16:49