alphapapa / alphapapa/emacs-package-dev-handbook

Understanding eval-when-compile

未關閉
#13 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
help wanted
主要語言
JavaScript
星號
1.2k
分支
46
PR 合併指標
30 天內沒有已合併 PR

描述

Hello,

I'd like to suggest cover `eval-when-compile` subject in terms of package development. Some topics are bellow:

- When a developer should use `eval-when-compile` despite the fact that at first glance everything works w/o `eval-when-compile`. I.e. some guidance and best practices
- `eval-when-compile` and tests. How it affects and helps. When this may leads to unexpected behavior. Please provide some examples
- Is the presence in a package `defsubst`, `defmacro` `define-inline` the reason to use `eval-when-compile`? Describe why.
- Provide please some anti-patterns or bad practices. When a developer shouldn't use `eval-when-compile` even this works
- `eval-when-compile`, autoloading, package building and distributing. How is this related?
- `eval-and-compile`, `eval-when-compile`, `with-eval-after-load `

Thank you

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。