That's the funny part too, there are less than 100 usages of void period in the SQLite source code. At reasonable location; module loading boundaries & malloc/free.
The source code heavily uses typed pointers everywhere.
Thanks, I actually wanted to check before writing the comment. Anyway, there are still other ways of violating type safety, but type safety lies on a spectrum.
The section that defends the design choices explains this apparent contradiction, which only originates from an approach that can't go beyond "static type good, dynamic type bad".
It's too old for Javascript :D (Yes, I know Javascript is older -- 1995 vs. 2000 for the first Sqlite version. But no one was using it outside the browser until c. 2009 when Node was released.)
View all comments
Show parent comment
10
u/obetu5432 Jul 12 '26
lol, so why didn't they write SQLite in javascript instead of C, if type enforcement is bullshit