😎
[Bug #21027] not() の結果が parse.y と prism で異なるバグ報告
[Bug #21027] not()
receiver should be nil
-
not()
の結果がparse.y
とprism
で異なるというバグ報告
p not()
# parse.y => true
# prism => false
-
not()
って有効なシンタックスになるんですね、へえ - これは
not()
がparse.y
がnil.!
と解釈されるのに対してprism
がself.!
と解釈されるから、らしい - この不具合は開発版の Ruby 3.5-dev で修正済みで
prism
の場合でもtrue
が返るようになります
Discussion