Live data from Hacker News

Google Launches Carbon, an Experimental Replacement for C++

thenewstack.io

1–10 of 243 posts

Re: Google Launches Carbon, an Experimental Replacement for C++

#2
It’s clear that the value promise of Carbon is to make it attractive to port existing C++ applications to it.

But how this is accomplished, article does not go into detail in this. Is there going to be ABI compatibility with C++? What are the features that make Carbon a better porting target than Rust?

Re: Google Launches Carbon, an Experimental Replacement for C++

#4
I’m a big fan of ‘var’ and ‘let’ in Swift. Easier to identify mutable vs immutable variables. I believe Carbon uses the same convention?

https://github.com/carbon-language/carbon-lang

Helps with quick auto-completion, and someday when I get to dictate code, fewer mistakes.

Re: Google Launches Carbon, an Experimental Replacement for C++

#10
post #5

var r : i32; How is this any better than int32_t r; ? all I see is additional, unnecessary keyword to type.

I think by using `var` keyword you have the potential to inherit the type without changing too much the syntax, in rust you could omit the type if the compiler can inherit the type, that saves you a lot of typing in the future, but you could argue that it makes harder to read the source code without any tool.
Post reply on HN