【GNU】Emacs Lisp 【Elisp】

299デフォルトの名無しさん
垢版 |
2025/10/13(月) 08:05:49.85ID:jcovVfcE
ああごめんここemacsスレじゃなくてelispスレだからスレチだったわ
300デフォルトの名無しさん
垢版 |
2025/10/16(木) 01:18:12.54ID:BKqCsKPx
>>296
elispではいまのところ(ほぼ)無意味っぽいね

Most of the Common Lisp declarations are not currently useful in Emacs Lisp. For example, the byte-code system provides little opportunity to benefit from type information. A few declarations are meaningful when byte compiler optimizations are enabled, as they are by default. Otherwise these declarations will effectively be ignored.

https://www.gnu.org/software/emacs/manual/html_node/cl/Declarations.html

まあ型宣言のご利益はなくても、(読みにくくならぬ程度の)適切な型宣言は読み手へのアノテーションにもなるから推奨したい
301デフォルトの名無しさん
垢版 |
2025/10/17(金) 01:25:53.83ID:D1Ebmx1L
>>298
HemlockはGNU Emacs/Xemacsより(それまでの)emacsに近いんだよな

多分まだ一番古い資料が残ってるlisp系Emacsはelispの直接祖先であるMacLisp(1966)のエディタだろう
コンピュータ史系のサイト読めるMacLispのマニュアル類にはエディタのキーバインドまで記されている
当然ながらemacs風キーバインドで、この頃には今に繋がるlisp系emacs(非TECO系)確立されてた
レスを投稿する

5ちゃんねるの広告が気に入らない場合は、こちらをクリックしてください。

ニューススポーツなんでも実況