Learn Zig programming and code a complete game in only 2 minutes. Code: replit.com/@zizyo/zig
Пікірлер: 21
@lopsidedpolygon Жыл бұрын
That was fun!
@Iongjump10 ай бұрын
oh you're the freecodecamp guy, kudos to you 🎉 🥳
@kristun2169 ай бұрын
Would love some syntax highlights for my zoomer brain
@MustaphaRashiduddin-zx7rn11 ай бұрын
Nice game bro
@geeksuperstar85649 ай бұрын
could you please try Odin?
@paperstars9078 Жыл бұрын
I head about raylib? how does raylib relate to this?
@michaelscofield4524 Жыл бұрын
Raylib is an entire library dedicated to making games programming accesible and fun. It has bindings for many languages, including Zig.
@charliegnu11 ай бұрын
Raylib added Zig's build system to its sources a few months ago so you can build Zig or C projects using Zig (since Zig can also compile C code).
@blindender99794 ай бұрын
What is the on .{}?
@JannisAdmek4 ай бұрын
It's an anonymous struct, similar to a tuple. You see, Zig doesn't allow variable parameter length (like ...args) in other languages. So print for instance takes this tuple: std.debug.print("{d} {s}", .{42, "Hello"});
@JannisAdmek4 ай бұрын
but print without args is still: std.debug.print("Hi", .{});
@jwr67963 ай бұрын
I stopped my Zig journey a few weeks back because I couldn't figure out the .{}... back on it, thanks to you!
@_slier11 ай бұрын
zig got potential..but its syntax is god damn ugly.. just look at how many cast function it have.. passing anonymous struct to print function even though u not passing any args? fuck... odin or jai is the best bet
@_orangutan11 ай бұрын
oh yeah because C or C++ had the best syntax. Odin/Jai is like D never took off. I programmed in D back in 2017 and it's still obscure even with the backing of big corps. The Zig team want's to move away from LLVM and that's a good thing.
@gushinsussin11 ай бұрын
@@_orangutan c looks a billion times better than that eyesore
@themathophage823811 ай бұрын
@@gushinsussin Please #define better.
@gushinsussin11 ай бұрын
@@themathophage8238 looks better than a.v.c.d.f.g.h.f.g.g.h.j.jh.h.a() if i wanted that kind of syntax id use java then id shoot myself in the head
@kanji_nakamoto11 ай бұрын
Dude doesn’t even have access to jai and is commenting on zig content about Odin and jai… Nonsense