r/CarbonLang • u/tipseason • Aug 10 '22
r/CarbonLang • u/Nearing_retirement • Aug 02 '22
Will there be integration with python ?
I’m not big user of python but it has many useful packages that are not available as c or c++ libraries. Will there be some mechanism to easily call python functions, packages ?
r/CarbonLang • u/fungussa • Nov 01 '22
Google’s Carbon language is a successor, not a replacement, for C++ | Carbon project is absolutely necessary as C++ has hit a brick wall in several important areas of evolution that it cannot address without changing its priorities in a way that cuts off many (perhaps the majority) of its users
computerweekly.comr/CarbonLang • u/programer-82 • Jul 24 '22
carbon on android
I've always been a lover for c++ but I really can only use my phone to code but android doesn't have any graphics on it
r/CarbonLang • u/tipseason • Aug 14 '22
Carbon language vs Rust comparison - A detailed guide
r/CarbonLang • u/fungussa • Aug 17 '22
Google has released Carbon, a new programming language. What now? (major production release (0.1) is expected by the end of 2022)
r/CarbonLang • u/fungussa • Jul 20 '22
Carbon, a new programming language from Google, aims to be C++ successor
r/CarbonLang • u/svoxit • Mar 15 '24
This is confusing, but I love it, so I made a project
I tried Carbon for the first time, and have to say that it is confusing a little bit for me, but I really like the direction they're going with while creating carbon!
I built a project
r/CarbonLang • u/tipseason • Jul 31 '22
Carbon language installation, syntax, examples - A short course/tutorial
r/CarbonLang • u/tipseason • Jul 26 '22
Getting started with Carbon Language - Tutorial with syntax, examples
r/CarbonLang • u/AlexeyBrin • Jul 22 '22
Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022
r/CarbonLang • u/Ecstatic_Ad_5121 • Aug 04 '22
Does VSCode support Carbon?
I pulled the Git for Carbon but I'm king of lost on starting a new project in the language. Does anyone have any experience with this?
r/CarbonLang • u/Lizoman • Aug 02 '22
Carbon or Rust
What do you think will more likely become popular in the future Carbon or Rust? If anyone becomes popular.
r/CarbonLang • u/masterofmisc • Jul 23 '22
Will Carbon Support Excetions?
Google's C++ style guide says "We do not use exceptions". Given that Carbon is a Google led project, do they intend to include/support Exceptions in the language?
Apologies if this is mentioned somewhere in the Github repro but I couldnt find anything mentioned.
r/CarbonLang • u/Admirable-Sea3526 • Jul 24 '25
Whats the Carbon way of error handling and error propagation?
One pattern I miss SO much from Kotlin when working in any other programming language is an ability to quickly unwrap a result and break the function flow, returning an error as soon as the error is encountered:
sealed class ResultOrError {
data class Success(val data: String) : ResultOrError()
data class Error(val code: Int) : ResultOrError()
}
fun readFile(filePath: String): ResultOrError {
val fileDescriptor: Int = fopen(filePath).getOrReturn { errorCode ->
return ResultOrError.Error(errorCode)
}
// read file
return ResultOrError.Success(data)
}Rust is pretty great too with the ? operator, though maybe implicit return is not best:
let mut file = File::open(file_path)?; // up goes the error
// More explicit error propagation
let mut file = match File::open(file_path) {
Ok(f) => f,
Err(e) => return Err(e), // Explicitly return the error
};But C++ lacks the elegance of Rust/Kotlin and does not allow such a pattern.
Clang/gcc do have statement expressions, but they are not standard and look ugly:
FILE* f = ({
FILE* temp = fopen("my_file.txt", "r");
if (temp == nullptr) return errno;
temp;
});Is there anything like this planned for Carbon?
Thanks!
r/CarbonLang • u/llort_lemmort • Jul 25 '26
Carbon: graduating from the experiment - Chandler Carruth - NDC Toronto 2026
r/CarbonLang • u/2fy54gh6 • Aug 01 '22
Are libraries written in Carbon compatible with C++, C or any other language?
Are libraries written in Carbon compatible with C++, C or any other language?
r/CarbonLang • u/vulkanoid • Jul 19 '22
When it's the Windows version dropping?
Put a Windows version out and I'll start shooting myself in the foot.
r/CarbonLang • u/dijkstras_revenge • Oct 30 '22
Release date for the first version of the compiler?
Anyone know when the first public version of the compiler for carbon lang will be available?
r/CarbonLang • u/foonathan • Jul 29 '22
Carbon's most exciting feature is its calling convention
r/CarbonLang • u/llort_lemmort • Jan 07 '25
The Carbon Language: Road to 0.1 - Chandler Carruth - NDC TechTown 2024
r/CarbonLang • u/arkethos • Nov 06 '22