5

It seems Google is not a good place to search Scala syntax. Are there any good places for that, e.g., reserved words like <:? Thanks

YasserKaddour
  • 880
  • 11
  • 23
zjffdu
  • 25,496
  • 45
  • 109
  • 159
  • 2
    There is http://symbolhound.com/ but it seems to be broken right now. It doesn't show search results to me. – kiritsuku Aug 16 '15 at 10:28
  • Good question. Searching for the meaning of some weird operators can be really cumbersome. – TheMP Aug 16 '15 at 12:55

1 Answers1

8
  1. A good starting point may be the Finding symbols FAQ at scala-lang.org. Common operators used in standard classes be found in this operator cheat sheet (although the cheat sheet doesn't include symbols like <:).

  2. You can also try Scala reference. It is a PDF that you can fulltext-search for strings like <:, although the reference documentation is a bit complex.

  3. Then there are are some interesting question here on SO, e.g., Scala punctuation, or all uses of underscores.

  4. Symbolhound.com is a search engine that doesn't ignore special characters. It can point you in the right direction, often here to Stack Overflow.

  5. Finally, Scala translates some symbols in method names to be compatible with JVM, e.g., ++: gets translated to $plus$plus$colon (see translation table here). You could search google for, e.g., site:scala-lang.org $colon$colon. this seems to locate only object/class names, though.

PS: I also checked if you really can't ask Google: seems you can't :(

Community
  • 1
  • 1
Mifeet
  • 12,949
  • 5
  • 60
  • 108