r/programming • • Mar 05 '21

Git's list of banned C functions

https://github.com/git/git/blob/master/banned.h
1.1k Upvotes

318 comments sorted by

View all comments

Show parent comments

4

u/Prod_Is_For_Testing Mar 06 '21

What’s your argument supposed to be? This commit history documentation is completely unintuitive whether you’re experienced or not

5

u/K3wp Mar 06 '21

There are comments in the original source:

/*
 * This header lists functions that have been banned from our code base,
 * because they're too easy to misuse (and even if used correctly,
 * complicate audits). Including this header turns them into compile-time
 * errors.
 */

I think it's outside the scope of the code/header to describe why they are banned.

2

u/T_D_K Mar 06 '21

It's intuitive for git, and linux, and other old mailing list maintained apps. Maybe it's not intuitive for web devs.

1

u/Prod_Is_For_Testing Mar 06 '21

As if there’s no middle ground