Earlier quoted context omitted.
Why did you find that crazy? They are 2 fully separate languages that have both evolved after the latter (C++) was first introduced.
I wouldn't call them "fully separate". Mixed C/C++ codebases are still fairly common, which works as long as the interface between them is in C.
Cello – A library that brings higher level programming to C
31–40 of 158 posts
Re: Cello – A library that brings higher level programming to C
#32Why not just use C++?
That's like saying "Why not just use lisp?" to a python programmer. They're entirely separate languages (albeit it they do share some commonalities, but not as many as you might think). C is my main language and I dabble in C++. I really dislike C++. I love C. I welcome any efforts to add a bit of higher level functionality to C. I have no desire (ever) to switch to C++.
Re: Cello – A library that brings higher level programming to C
#33Earlier quoted context omitted.
That's like saying "Why not just use lisp?" to a python programmer. They're entirely separate languages (albeit it they do share some commonalities, but not as many as you might think). C is my main language and I dabble in C++. I really dislike C++. I love C. I welcome any efforts to add a bit of higher level functionality to C. I have no desire (ever) to switch to C++.
What do you love about C and hate about C++?
In C++, everything is an int; except for objects; and templates; and lambdas; and classes; and exceptions; and all the other things which keep getting chucked on to the pile.
I like languages with a clear, simple concept behind their operation: lambda calculus, combinatory logic, Scheme, Forth, Joy, Pure, etc. C is a bit gnarly, but passable. C++ is horrible.
Re: Cello – A library that brings higher level programming to C
#34Why not just use C++?
Why not just write another language, that compiles to machine code, but doesn't totally enforce type safety. Call it Iron.
Re: Cello – A library that brings higher level programming to C
#35Earlier quoted context omitted.
That's like saying "Why not just use lisp?" to a python programmer. They're entirely separate languages (albeit it they do share some commonalities, but not as many as you might think). C is my main language and I dabble in C++. I really dislike C++. I love C. I welcome any efforts to add a bit of higher level functionality to C. I have no desire (ever) to switch to C++.
C programmer here. Cello isn't really C. So as long as you're using something that isn't quite C, and you want an object model, I think "why not C++?" is a reasonable question.
Re: Cello – A library that brings higher level programming to C
#36Earlier quoted context omitted.
What do you love about C and hate about C++?
I'm not the parent, but C has a certain simple elegance: everything's an int; those things which aren't ints (e.g. compound structures like structs and arrays) are represented using pointers and offsets, so in a sense they're also ints; except for floats, but meh. In C++, everything is an int; except for objects; and templates; and lambdas; and classes; and exceptions; and all the other things which keep getting chuc…
So you dont like C because Undefined behaviour complexitys. Im confused now.
Re: Cello – A library that brings higher level programming to C
#37Earlier quoted context omitted.
Can you provide C code that will not compile with c++ compiler?
Here's a bunch of examples: http://www.geeksforgeeks.org/write-c-program-wont-compiler-c...
Re: Cello – A library that brings higher level programming to C
#38Earlier quoted context omitted.
C programmer here. Cello isn't really C. So as long as you're using something that isn't quite C, and you want an object model, I think "why not C++?" is a reasonable question.
Why would you say that "Cello isn't really C"?
Re: Cello – A library that brings higher level programming to C
#39Earlier quoted context omitted.
slow compile times, complex language, sanity
Compile times aren't that slow, and the language is barely less complex than this insane hack. In fact C++'s complexity allows libraries to make their use a lot simpler. Consider string concatenation in C++ and C. Which is really simpler? The main reason I can think not to use C++ is that C has a simple stable ABI so you can easily use C libraries from many languages and compilers. But you can always wrap C++ librari…
[1] http://stackoverflow.com/questions/4489012/does-c-have-a-sta...
Re: Cello – A library that brings higher level programming to C
#40Earlier quoted context omitted.
And make sure Iron has a small group of annoying, hardcore fans who relentlessly disrupts any thread about C or indeed programming in general with their ham fisted advocacy.
I wonder if the Iron fans realize that they are doing more harm than good the way they go about this. It reminds me of the perl zealot days.
I'm not an Iron zealot but I do believe that there rarely is such a thing as bad publicity :)