login
Header Space

 
 

Re: [OT] Re: C++ *for Git*

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marco Costalba <mcostalba@...>
Cc: Linus Torvalds <torvalds@...>, Pierre Habouzit <madcoder@...>, Frank Lichtenheld <frank@...>, Alex Unleashed <alex@...>, Kyle Rose <krose@...>, Miles Bader <miles@...>, Dmitry Kakurin <dmitry.kakurin@...>, Git <git@...>
Date: Sunday, September 23, 2007 - 2:30 pm

"Marco Costalba" <mcostalba@gmail.com> writes:


Not really.  The difference is that the first generates new (and
optimized) code for every type which is something you can only do
using macros in C.  Class programming is similar to opaque pointers
(in particular concerning the generated code) but templates are really
more like macros, as their instantiation generates specialized code,
not at all like the handling of opaque pointers.

While I tend to agree that templates are probably the one thing
actually worth having, it was stupid to lift the restrictions syntax
along with the concept of generics from the Ada shop.  Borrowing
syntax along with features is such a Perlesque approach.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[OT] Re: C++ *for Git*, Kyle Rose, (Sat Sep 22, 2:25 pm)
Re: [OT] Re: C++ *for Git*, Alex Unleashed, (Sat Sep 22, 6:50 pm)
Re: [OT] Re: C++ *for Git*, Frank Lichtenheld, (Sat Sep 22, 10:09 pm)
Re: [OT] Re: C++ *for Git*, David Brown, (Sun Sep 23, 2:25 am)
Re: [OT] Re: C++ *for Git*, David Kastrup, (Sun Sep 23, 3:23 am)
Re: [OT] Re: C++ *for Git*, Marco Costalba, (Sun Sep 23, 5:29 am)
Re: [OT] Re: C++ *for Git*, Pierre Habouzit, (Sun Sep 23, 6:45 am)
Re: [OT] Re: C++ *for Git*, Marco Costalba, (Sun Sep 23, 9:42 am)
Re: [OT] Re: C++ *for Git*, Linus Torvalds, (Sun Sep 23, 12:54 pm)
Re: [OT] Re: C++ *for Git*, Dmitry Potapov, (Sun Sep 23, 5:22 pm)
Re: [OT] Re: C++ *for Git*, Reece Dunn, (Sun Sep 23, 6:25 pm)
Re: [OT] Re: C++ *for Git*, Dmitry Potapov, (Mon Sep 24, 6:46 am)
Re: [OT] Re: C++ *for Git*, David Kastrup, (Sun Sep 23, 5:31 pm)
Re: [OT] Re: C++ *for Git*, Robin Rosenberg, (Sun Sep 23, 7:10 pm)
Re: [OT] Re: C++ *for Git*, Marco Costalba, (Sun Sep 23, 2:05 pm)
Re: [OT] Re: C++ *for Git*, David Kastrup, (Sun Sep 23, 2:30 pm)
Re: [OT] Re: C++ *for Git*, Marco Costalba, (Sun Sep 23, 2:43 pm)
Re: [OT] Re: C++ *for Git*, David Kastrup, (Sun Sep 23, 3:11 pm)
Re: [OT] Re: C++ *for Git*, David Kastrup, (Sun Sep 23, 10:37 am)
Re: [OT] Re: C++ *for Git*, Paul Franz, (Sun Sep 23, 1:49 pm)
Re: [OT] Re: C++ *for Git*, Marco Costalba, (Sun Sep 23, 11:15 am)
Re: [OT] Re: C++ *for Git*, Nicolas Pitre, (Sun Sep 23, 10:23 am)
Re: [OT] Re: C++ *for Git*, Marco Costalba, (Sun Sep 23, 10:45 am)
Re: [OT] Re: C++ *for Git*, David Kastrup, (Sun Sep 23, 5:42 am)
Re: [OT] Re: C++ *for Git*, Marco Costalba, (Sun Sep 23, 5:50 am)
Re: [OT] Re: C++ *for Git*, David Kastrup, (Sat Sep 22, 3:11 pm)
speck-geostationary