在哪里搜索Scala语法-保留字,关键字,运算符? [英] Where to search for Scala syntax - reserved words, keywords, operators?

查看:87
本文介绍了在哪里搜索Scala语法-保留字,关键字,运算符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎Google并不是搜索Scala语法的好地方.是否有合适的位置,例如<:之类的保留字?谢谢

解决方案

  1. 查找符号常见问题在scala-lang.org上.在运算符作弊中可以找到标准类中使用的常见运算符(尽管备忘单不包含<:之类的符号).

  2. 您还可以尝试 Scala参考.这是一个PDF,您可以全文搜索<:之类的字符串,尽管参考文档有点复杂.

  3. 然后在SO上有一些有趣的问题,例如标量标点符号,或下划线的所有用法.

  4. Symbolhound.com 是一个不会忽略特殊字符的搜索引擎.它可以为您指明正确的方向,通常是在此处出现堆栈溢出.

  5. 最后,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

解决方案

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

这篇关于在哪里搜索Scala语法-保留字,关键字,运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆