在哪里搜索Scala语法-保留字,关键字,运算符? [英] Where to search for Scala syntax - reserved words, keywords, operators?
问题描述
似乎Google并不是搜索Scala语法的好地方.是否有合适的位置,例如<:
之类的保留字?谢谢
-
查找符号常见问题在scala-lang.org上.在运算符作弊中可以找到标准类中使用的常见运算符(尽管备忘单不包含
<:
之类的符号). -
您还可以尝试 Scala参考.这是一个PDF,您可以全文搜索
<:
之类的字符串,尽管参考文档有点复杂. -
Symbolhound.com 是一个不会忽略特殊字符的搜索引擎.它可以为您指明正确的方向,通常是在此处出现堆栈溢出.
- 最后,Scala将方法名称中的某些符号转换为与JVM兼容,例如,
++:
被转换为$plus$plus$colon
(请参见转换表site:scala-lang.org $colon$colon
.但是,这似乎仅定位对象/类的名称.
PS:我还检查了您是否真的不能问Google:看来您不能:(>
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
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
<:
).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.Then there are are some interesting question here on SO, e.g., Scala punctuation, or all uses of underscores.
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.
- 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 :(
这篇关于在哪里搜索Scala语法-保留字,关键字,运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!