lisp-maintainers/defstar
View on GitHub ↗ ★ 43 Common Lisp
Type declarations for defun et all. Just a mirror. Ask for push acess!
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2021-11-07 · latest 2023-10-11
20082026
-
…(string string) string) concat)) would become: (-> concat (string string) string) there is also https://github.com/lisp-maintainers/defstar for providing more ergonomic type declarations inline in definitions And this is another thing I'm…
comment by bo-tato · 2023-10-11 · in Common Lisp: An Interactive Approach (1992) -
…types more portable[2][3]. [1] http://www.lispworks.com/documentation/HyperSpec/Body/s_the.... [2] https://github.com/lisp-maintainers/defstar [3] https://github.com/ruricolist/serapeum/blob/master/REFERENCE...
comment by brabel · 2023-07-01 · in Steel Bank Common Lisp -
agreed^^ there are macros and libraries to bring a nicer syntax (of course). Exple: https://github.com/lisp-maintainers/defstar (defun* (sum -> real) ((a real) (b real)) (+ a b))
comment by vindarel · 2021-11-07 · in Common Lisp code optimisation