difftasticをCommon Lispで使ってみる

Difftastic, a structural diffCommon Lispで使ってみた。

cargoでインストールする。

cargo install --locked difftastic
(略)
  Installing /home/gos-k/.cargo/bin/difft
   Installed package `difftastic v0.53.1` (executable `difft`)

以下の2ファイルを比較してみる。

(defun alfa (bravo)
  (charlie delta))
(defun alfa ()
  (delta (charlie)
         echo))

通常の diff で比較した場合。

difftasticの difft で比較した場合。

括弧を考慮しつつ変更部分を色分けしてくれる。 便利そう。