Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Carbon Lang First Look and Crash Course - Google's C++ Successor

Traversy Media via YouTube

Overview

Explore Google's new C++ successor, Carbon, in this comprehensive video tutorial. Dive into the basic syntax, covering essential topics such as variables, data types, arrays, tuples, classes, and generics. Learn how to set up Carbon using Homebrew, understand package namespaces, and create functions. Discover primitive data types, naming conventions, and variable declarations using the 'let' keyword and 'auto' type. Explore scope with global variables, work with multi-line strings, and implement function arguments. Gain insights into arrays, tuples, structs, classes, and objects, including class methods and functions. Delve into pointers, control structures like if-else statements and match statements, and learn about while loops. Finally, grasp the concept of generics in Carbon. Access additional resources, including the main Carbon repository and a gist file with code examples from the video.

Syllabus

- Intro.
- Carbon - What & Why?.
- Setup With Homebrew.
- Package Namespace.
- Main() Function.
- Print() Function.
- Creating Functions.
- Primitive Data Types.
- Naming Conventions.
- Variables.
- let Keyword.
- auto Type.
- Global Variables & Scope.
- Multi-Line Strings.
- Function Arguments.
- Arrays.
- Tuples.
- Structs.
- Classes & Objects.
- Class Methods.
- Class Functions.
- Pointers.
- If Else Statements.
- Match Statement.
- While Loops.
- Generics.
- Outro.

Taught by

Traversy Media

Reviews

Start your review of Carbon Lang First Look and Crash Course - Google's C++ Successor

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.