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 |_| { > ... > }
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).
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.
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.
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)
@@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.
@@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.
Ziglings start at 33:00
thanks
thank you good people of the internet
and end at 1:43:50
W man
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 |_| {
> ...
> }
"it this the... is that the... is that like the "what the f**k" operator? what is that?" -- Primagen
The built-in zig plugin is what causes errors to be displayed in the location list
lol man youve covered everything. started learning C as a fun way to learn how many works in C# but was curious about zig
Awesome gimp skills.
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).
Does anyone know when Zig is planning to stop making breaking changes? I like the language but I want at least a stable version.
Tom is a genius
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.
I think zig is going to be fun. I'm pretty excited
@@TheVimeagen zig is awesome! Had some great fun making my two videos the last week.
It feels like C but nicer.
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.
is it possible to upload the newest stream faster? missing the zig streams everytime is starting to be painful :/
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.
I remember this stream, it was great
The Zigeagen!
Haha, any idea what vimeagen means? He uses vim? But what is eagen
He combined his name, ThePrimeagen, with vim
I am convinced you can't wipe properly while standing. Easily proven: Try wiping clean while standing first, then sit and wipe again.
How the hell do people wipe sitting
zig is great
No jokes about Sieg... *banned by YT*
If i saw this earlier , i wouldve bought you Super Duper (assuming you were going to Los Gatos)
oh i went to los gatos!
going back again soon
One reason to consider Odin over Zig is that Zig is expected to make breaking changes where Oding is stable and used in production.
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)
@@gittawat6986 Right. Once 1.0 is out it's going to be a very compelling choice.
@@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.
@@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.
@@pietraderdetective8953 this: th-cam.com/video/AqDdWEiSwMM/w-d-xo.html - Zig Roadmap 2023 - Andrew Kelley
$(pwd) instead of just $PWD 😩
Zig is great 🫰