水晶多行注释

Mat*_*tte 6 comments crystal-lang

Crystal 中有多行注释吗?就像 Ruby 所做的那样:

=begin
    this is a
    multiline
    comment in Ruby
=end
Run Code Online (Sandbox Code Playgroud)

这只会在 Crystal 中给我一个错误:

unexpected token: =

RX1*_*X14 6

Crystal 没有多行注释。只需在要注释掉的行块前面加上#单行注释即可。您的编辑应该能够为您做到这一点。

  • 严重地?没有多行注释吗?听起来不像创作者会简单地忽略的东西...... (2认同)