Pigsaw Blog
All the pig that’s fit to saw

How to ensure developers do the right thing

This is from the manual for SQLite. A piece of documentation which reliably ensures people don’t use out-of-date functions:

int sqlite3_aggregate_count(sqlite3_context*);

This function is deprecated. It continues to exist so as not to break any legacy code that might happen to use it. But it should not be used in any new code.

In order to encourage people to not use this function, we are not going to tell you what it does.

Thanks to Graham for the pointer.

Tags: ,

Leave a Reply »»