4 ms·
Spec has it's place, but I think people are trying to shovel spec in all sort of places; for example, heavy data parsing, making code very hard to track. Remind
by dig1 6y ago
Spec has it's place, but I think people are trying to shovel spec in all sort of places; for example, heavy data parsing, making code very hard to track. Reminds me on core.logic movement couple of years ago, where everyone tried to have own parser/ui/whatever written in it, resulting very unreadable code.
What I'm really missing from spec is ability to disable it with flag or property, like "assert" macro. Sometimes I just want piece of code to run as fast as possible with less bytecode and instructions executed.
- StreamBright 6y agoCode readability is massively underrated.
- jgalt212 6y agoIsn't spec just a way to bolt on types to a dynamic language? And if you look at this way, can one have its cake and eat it too?