haskell运算符允许使用哪些字符? [英] What characters are permitted for haskell operators?
问题描述
是否有完整的允许字符列表,或者是一个规则,用于确定标识符与运算符可以使用的内容?
我正在寻找的是完整的角色列表。根据其他答案,完整列表是:
Unicode标点符号:
- http://www.fileformat.info/info/unicode/category/ Pc / list.htm
- http://www.fileformat.info/info/unicode/category/Pd/list.htm
- http://www.fileformat.info/info/unicode/category/Pe/list.htm >
- http://www.fileformat.info /info/unicode/category/Pf/list.htm
- http://www.fileformat.info/info/unicode/category/Pi/list.htm
- http://www.fileformat.info/info/unicode/category/Po/list.htm
- http://www.fileformat.info/info/unicode/category/Ps /list.htm
Unicode符号:
但是不包括以下在Haskell中具有特殊含义的字符:
(),; []`{} _:''
Is there a complete list of allowed characters somewhere, or a rule that determines what can be used in an identifier vs an operator?
What I was looking for was the complete list of characters. Based on the other answers, the full list is;
Unicode Punctuation:
- http://www.fileformat.info/info/unicode/category/Pc/list.htm
- http://www.fileformat.info/info/unicode/category/Pd/list.htm
- http://www.fileformat.info/info/unicode/category/Pe/list.htm
- http://www.fileformat.info/info/unicode/category/Pf/list.htm
- http://www.fileformat.info/info/unicode/category/Pi/list.htm
- http://www.fileformat.info/info/unicode/category/Po/list.htm
- http://www.fileformat.info/info/unicode/category/Ps/list.htm
Unicode Symbols:
- http://www.fileformat.info/info/unicode/category/Sc/list.htm
- http://www.fileformat.info/info/unicode/category/Sk/list.htm
- http://www.fileformat.info/info/unicode/category/Sm/list.htm
- http://www.fileformat.info/info/unicode/category/So/list.htm
But excluding the following characters with special meaning in Haskell:
(),;[]`{}_:"'
这篇关于haskell运算符允许使用哪些字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!