Re: [RFC] Convert builin-mailinfo.c to use The Better String Library.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dmitry Kakurin <dmitry.kakurin@xxxxxxxxx> wrote:
> When I first looked at Git source code two things struck me as odd:
> 1. Pure C as opposed to C++. No idea why. Please don't talk about 
> portability, it's BS.

Git's creator (Linus) codes in C, not C++.  He has at various times
stated reasons why he does not use C++.  I'm sure one can find such
messages with a bit of searching on mailing lists that he frequents.
He has his reasons.  I also happen to agree with at least some
of them.  :)

Git evolved from that initial prototype that Linus created.  I'm not
sure how much code survives from that initial few versions that
Linus managed before Junio took over, but nobody wanted to rewrite
things that already work so it just stayed in C.
"If it works, don't fix it."

C works.  We (now) have 83,215 lines of it.  Its not going away
anytime soon in Git.  It is also a relatively simple language that
a large number of open source programmers know.  This makes it easy
for them to get involved in the project.  Instead of say Haskell,
which has a smaller community.  Or Tcl/Tk as we recently found out
in the Git User Survey.  :-\

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux