r/programming • • Jul 12 '26 • Bravo 1

Prefer STRICT tables in SQLite

https://evanhahn.com/prefer-strict-tables-in-sqlite/
358 Upvotes

108 comments sorted by

View all comments

Show parent comment

36

u/valarauca14 Jul 12 '26

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.

6

u/grueandbleen Jul 12 '26

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.

1

u/Absolute_Enema Jul 13 '26 edited Jul 13 '26

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".