-

@ David
2025-06-15 07:32:38
even then, one i just made for a key/value index key codec only came out to 326 lines, and the benefit of it is that the type of index is clear, there is a function to create the variables for the index type, a function that makes an encoder, and a function that makes a decoder (difference being one sets the prefix, the other just makes an empty prefix to read in).
because the names are really clear and static checking highlights when i'm using the wrong one it makes mistakes harder to make.
dynamic typing doesn't give you this kind of compile time safety checks, one of the reasons why i don't like dynamic typing languages. the rustaceans like to use the word "safety" but i think really it's a category of "correctness" which i think is much more important than safety. a gun is an unsafe machine, but it has to be correct or it becomes even more unsafe.