[英]How do you make comments in PureScript?
I'd like to know how to make comments in PureScript code. 我想知道如何在PureScript代码中进行注释。
In Python, the equivalent would be: 在Python中,等效项为:
# Here is a comment
Or JavaScript 或JavaScript
// Another comment
What is the equivalent in PureScript? PureScript中的等效功能是什么?
According to the PureScript Language Reference , there are single-line comments 根据《 PureScript语言参考》 ,有单行注释
-- comment
and multi-line comments 和多行注释
{- comment
comment line 2
-}
Special comments like -- |
特殊评论,例如-- |
are picked up by documentation tooling. 由文档工具提取。
我相信您可以做到: -- some somment
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.