Read me needs a more compelling example #1533
kevin-j-channon
started this conversation in
General
Replies: 1 comment 2 replies
-
A couple of things are hidden in that example (like Carbon's use of modules/packages instead of C++ textual headers), but you're right that the two examples don't look much different. But that's the point! :) The fact that "the C++ and Carbon code is nearly identical" is exactly why this example exists. It demonstrates how reading and writing Carbon will still feel a lot like reading and writing C++, just simpler. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The "circles" example in the readme doesn't make a great case, since the C++ and Carbon code is nearly identical. Why bother wrangling a whole new language and tool chain for literally no gain? You might as well just write the C++!
I don't know if there is some killer feature currently in Carbon that would allow a great demonstration of "look at this! Just a few lines of Carbon is equivalent to this pile of C++! What are you waiting for!? Get on this train right now." That sort of thing. Maybe something with strings. Strings are always a ball ache in C++ :)
Beta Was this translation helpful? Give feedback.
All reactions