Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to search for Scala syntax - reserved words, keywords, operators?

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

like image 758
zjffdu Avatar asked Aug 16 '15 09:08

zjffdu


1 Answers

  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 :(

like image 144
Mifeet Avatar answered Oct 22 '22 00:10

Mifeet