Sds与GB:C字符串库,是复制还是巧合?
我在测试一堆不同的 C/C++ 库来管理字符串时,发现了这个巧合:
sds(来自 antirez 的简单动态字符串,Redis 的创建者):
https://github.com/antirez/sds/blob/master/README.md?plain=1#L33
gb(来自 gingerBill 的 gb 单文件库,Odin 语言的创建者):
https://github.com/gingerBill/gb/blob/master/gb_string.h#L71
是抄袭还是巧合?
查看原文
I was testing a bunch of different of C/C++ libraries to manage strings, and found this coincidence:<p>sds (Simple Dynamic Strings from antirez, Redis creator):
https://github.com/antirez/sds/blob/master/README.md?plain=1#L33<p>gb (gb single file libs from gingerBill, Odin language creator):
https://github.com/gingerBill/gb/blob/master/gb_string.h#L71<p>Copy or coincidence?