2 ms·
> StackTraces are hard to understand: Clojure Spec has been written about a ton in this regard developers cannot be expected to spec out every function prototy
by jgalt212 9y ago
> StackTraces are hard to understand: Clojure Spec has been written about a ton in this regard
developers cannot be expected to spec out every function prototype. that's just not a good use of time.
- blain_the_train 9y agototal agree, I hope Clojure Spec will eventually be applied to most Core Clojure functions, and that information will trickle up to user defined functions. But thats only a hope, and possible based on my limited knowledge of the tool. However, aren't most languages with the best errors messages Static and Strongly Typed? My point was more that I think Spec was created to help address the issue. Not necessarily that it was even a good solution.
- jgalt212 9y agocalling spec upon every core function invocation will surely be a performance hit, and a big one for tight loops.