1:41:43 The expression: > try x is short for: > x catch |errval| return errval which itself is short for: > if (x) |value| value else |errval| return errval So if you actually have something distinct you want to do in both cases, just use the longest form: > if (...parseInt...) |weight| { > ...add to sum... > } else |errval| { > ...check max and reset sum... > } Though since you don't use errval you can use the "I don't care" capture: > ... > } else |_| { > ... > }
@tepumasutasauno8671 Жыл бұрын
"it this the... is that the... is that like the "what the f**k" operator? what is that?" -- Primagen
@garymurray8496 Жыл бұрын
The built-in zig plugin is what causes errors to be displayed in the location list
@felixallistar8 ай бұрын
lol man youve covered everything. started learning C as a fun way to learn how many works in C# but was curious about zig
@sub-harmonik Жыл бұрын
the rumor that hans niemann used vibrating anal beads came from a joke a twitch chatter on the chessbrah channel made, and then eric hansen commented on it. It was always a meme and then the media picked it up like it was a serious allegation lol.
@pigmalion3433 Жыл бұрын
Awesome gimp skills.
@Burgo3618 ай бұрын
The toilet thing scares me I still haven't gotten over finding out that some of my friends scrunch instead of fold. I don't know if it matters but it feels like it does for some reason. In addition: I came here to learn zig now I'm trying to work out where I would draw the line in ways to learn things quickly and I'm somewhat confused now (that would have to be painful right).
@honeybadger5038 Жыл бұрын
Does anyone know when Zig is planning to stop making breaking changes? I like the language but I want at least a stable version.
@NathanHedglin Жыл бұрын
Tom is a genius
@minecraftermad Жыл бұрын
is it possible to upload the newest stream faster? missing the zig streams everytime is starting to be painful :/
@NdxtremePro Жыл бұрын
ziglings is designed to teach you to read and use the debugger from zig, not really the language is what I got from this video.
@NotTheHeroStudios Жыл бұрын
I remember this stream, it was great
@NickWindham Жыл бұрын
Bro, how are you already starting to learn Zig. You didn’t fully dive into Rust until less than a year ago. I know that a lot of skills are transferable between programming languages but it’s still impressive you’re able ti get good at a complex low level programming language that fast.
@TheVimeagen Жыл бұрын
I think zig is going to be fun. I'm pretty excited
@CallousCoder Жыл бұрын
@@TheVimeagen zig is awesome! Had some great fun making my two videos the last week. It feels like C but nicer.
@griffitaj Жыл бұрын
The Zigeagen!
@henryrussell7392 Жыл бұрын
Haha, any idea what vimeagen means? He uses vim? But what is eagen
@AndreiTache Жыл бұрын
He combined his name, ThePrimeagen, with vim
@puspo-in Жыл бұрын
zig is great
@ukrustacean Жыл бұрын
No jokes about Sieg... *banned by YT*
@AnthonyBullard Жыл бұрын
If i saw this earlier , i wouldve bought you Super Duper (assuming you were going to Los Gatos)
@TheVimeagen Жыл бұрын
oh i went to los gatos! going back again soon
@KnightMirkoYo Жыл бұрын
I am convinced you can't wipe properly while standing. Easily proven: Try wiping clean while standing first, then sit and wipe again.
@draganjonceski2639 Жыл бұрын
How the hell do people wipe sitting
@filipmajetic1174 Жыл бұрын
$(pwd) instead of just $PWD 😩
@firesoul453 Жыл бұрын
One reason to consider Odin over Zig is that Zig is expected to make breaking changes where Oding is stable and used in production.
@gittawat6986 Жыл бұрын
Andrew: "pls don't use zig in production" Some programmers at Uber:"heck it why not" 😂😂 There is probably less breaking change after reaching 1.0 (2025 probably)
@firesoul453 Жыл бұрын
@@gittawat6986 Right. Once 1.0 is out it's going to be a very compelling choice.
@109Rage Жыл бұрын
@@gittawat6986 To be fair, Uber isn't using Zig the language very much, and is instead using the Zig toolchain, and the work they've put in to package clang (the C/C++ compiler) into a self-contained cross-compiler, and those parts are fairly stable and not expected to have breaking changes.
@pietraderdetective8953 Жыл бұрын
@@gittawat6986may I know where you got the 2025 as the stable release milestone? I'd love to go back to Zig if it has reached 1.0 not before..currently too many breaking changes.
@gittawat6986 Жыл бұрын
@@pietraderdetective8953 this: kzbin.info/www/bejne/d6KnlYp7nriqg68 - Zig Roadmap 2023 - Andrew Kelley