Carbon Lang First Look & Crash Course | Google’s C++ Successor



Carbon is Google’s new C++ successor. In this video, we will talk a little bit about it and then look at the basic syntax including variables, data types, arrays, tuples, classes, generics and more.

💻 Carbon Main Repo:
https://github.com/carbon-language/carbon-lang

✅ Gist File From Video:
https://gist.github.com/bradtraversy/681eae47e8c2fc14fbfa9e3eac8dc3ca

⭐ My Courses & More
https://traversymedia.com

💖 Show Support
Patreon: https://www.patreon.com/traversymedia
PayPal: https://paypal.me/traversymedia

👇 Follow Me On Social Media:
Twitter: https://twitter.com/traversymedia
Instagram: https://www.instagram.com/traversymedia
Linkedin: https://www.linkedin.com/in/bradtraversy

Timestamps:
0:00 – Intro
1:37 – Carbon – What & Why?
7:26 – Setup With Homebrew
13:15 – Package Namespace
14:16 – Main() Function
16:40 – Print() Function
18:00 – Creating Functions
19:40 – Primitive Data Types
21:37 – Naming Conventions
22:14 – Variables
24:15 – let Keyword
26:22 – auto Type
27:06 – Global Variables & Scope
28:52 – Multi-Line Strings
29:27 – Function Arguments
31:49 – Arrays
35:10 – Tuples
37:42 – Structs
41:11 – Classes & Objects
43:32 – Class Methods
46:10 – Class Functions
47:52 – Pointers
52:35 – If Else Statements
54:55 – Match Statement
59:04 – While Loops
1:01:32 – Generics
1:05:22 – Outro

source

You May Also Like