使用 scalaz 进行开发是否需要类似 Unicode/APL 的键盘?
可以 scalaz 是否可以在没有包含适当 Unicode 字符的键盘的情况下使用,或者每个 Unicode 标识符是否也有一个等效的“ASCII”(如果是,是否能保证它保持这种状态)? scalaz 是否有特殊的键盘布局?
最佳做法是什么?直接输入 Unicode 标识符还是使用 ASCII 替换并在提交之前使用脚本将其替换为 Unicode 标识符?
Can scalaz be used without a keyboard containing the appropriate Unicode characters or does every Unicode identifier also have an "ASCII" equivalent (and if yes, is there any guarantee that it stays that way)? Are there special keyboard layouts for usage with scalaz?
What's the best practice? Inputting the Unicode identifiers directly or using the ASCII substitutes and using a script to replace them with the Unicode ones before commit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不,除了 ASCII 之外,您不需要任何东西来使用 Scalaz。
然而,大多数编辑器和 IDE 都有某种自动或半自动(例如 -space)将字符序列转换为其他字符的方法。如果您想将源代码保留为 Unicode,这就可以解决这个问题。
现在,以 Unicode 保存内容的问题是,在网页等中显示内容时,您可能会遇到某些字体的问题。天哪,您甚至可能由于某种原因被迫将代码转换为 ASCII。是的,这不太可能,但这是一个您应该注意的问题。
No, you don't need anything besides ASCII to use Scalaz.
However, most editors and IDEs have some way of automatically or semi-automatically (like, -space) converting a sequence of characters into something else. That takes care of it if you want to keep your source code in Unicode.
Now, the problem with keeping stuff in Unicode is that you might trouble with some fonts when displaying stuff in web pages, etc. Hell, you might even be forced to convert the code to ASCII for some reason. Yes, it is unlikely, but it is an issue you should be aware of.
来自超级用户的这篇文章有一些关于这方面的信息。
This post from Superuser has some information about this.
这篇关于Unicode 输入的维基百科文章可能会有所帮助。
This wikipedia article on Unicode input might be helpful.
不,是的。是的。不,善意的保证是给娘娘腔的。写代码。我使用合适的开发环境,让我可以输入任何我喜欢的内容。
No. Yes. Yes. No. Benign guarantees are for sissies. Write code. I use an appropriate development environment that allows me to type whatever I like.