Fork me on GitHub
#shadow-cljs
<
2023-09-26
>
rafalw07:09:40

Hello, If I understand correctly, during release build asserts are elided, what about checks in metadata {:pre [(...)]} ? Also what if some asserts are so important that I want to have them to be present even in the release build?

thheller07:09:07

:pre turns into asserts, so they are removed yes

thheller07:09:30

:compiler-options {:elide-asserts false} keeps them

thheller07:09:18

but asserts are primary for dev time "this can't be" things

thheller07:09:27

don't use them for validation purposes