Crystal言語を触っていて、Rubyと開発体験が違うなと感じていたのは、REPLの有無でした。Rubyではirbやpryを使いながらコードを書くのが普通だと思いますが、Crystalは静的言語なのでREPLがありませんでした。
しかし、Crystal公式からついにREPLがCrystal本体に搭載されることが発表されました。すでにマスターにはマージされており、自分でCrystalをコンパイルすれば利用することができます。(コンパイル時に make interpreter=1
とフラグを指定します。2021年12月31日の時点では、まだ公式のパッケージには含まれていないようです。)
詳しい内容については下記の公式ブログを参照ください。
この記事は以上です。