Go 1.23: Custom Iterators Explained - Best feature?!

  Рет қаралды 4,254

Flo Woelki

Flo Woelki

Күн бұрын

Пікірлер: 22
@RaminRowshan
@RaminRowshan 9 сағат бұрын
Thank you for your video! It would be very helpful if you could also share your code by providing a link in the video description.
@siya.abc123
@siya.abc123 Ай бұрын
Congratulations on 10K subs sir. I'm happy I was here before this milestone 😊
@FloWoelki
@FloWoelki Ай бұрын
Thank you very much! I appreciate that you are part of this journey!
@bopon4090
@bopon4090 Ай бұрын
Its confusing af. All the callback and syntactic sugar kind of hard to understand
@epsi
@epsi Ай бұрын
Try coding similar behavior yourself without the syntactic sugar and the runtime hack that allows you to use range func(yield func[V any](V) bool) range func(yield func[K, V any](K, V) bool) Once you demystify the yield function and how it works with the loop, it starts to make more sense. That said, i agree with you. It's definitely not intuitive, and i get the feeling it's going to be one of the ugliest parts of Go until something better comes along. Channels are one of the easiest things to use and understand despite their inherent complexity, so to see something like this make it into the language as a standard feature is quite sad.
@y.m.o6171
@y.m.o6171 Ай бұрын
pray tell how you are making these videos they are awesome !
@LielAlmog
@LielAlmog Ай бұрын
Do you think people will start creating their own iterators for utilities (like iterate over a slice in reversed order) or we’ll see more packages like in JS, where there are many packages that give built in functionalities
@FloWoelki
@FloWoelki Ай бұрын
Honestly, I do think that some people will create their own iterators for their libraries because they give you a lot of flexibility and developer-friendliness. Clearly, I cannot predict the future, so let's see where it goes :D
@selvamp5775
@selvamp5775 Ай бұрын
Function inside function inside another function... Little confused, hope will get it know.
@fntr
@fntr Ай бұрын
what code editor do you use atm and in this vid?
@FloWoelki
@FloWoelki Ай бұрын
I use the Zed Editor :)
@rahman9418
@rahman9418 Ай бұрын
Are you interested in creating a Udemy course? to teach the go language, because you explained it very well with an interactive video
@themannyzaur
@themannyzaur Ай бұрын
thank God I'm not the only one confused
@flipflap4673
@flipflap4673 Ай бұрын
Not sure where I read that Golang is a fool proof language, easy to learn for any noob.
@gungun974
@gungun974 Ай бұрын
@@epsigo never really changed, again if you don’t like a feature, just don’t use it. The day when Golang will become craps, it’s will be the day of the 2.0 update where old codes will just broke. Until them, there are nothing to worry.
@eddymoreno3818
@eddymoreno3818 Ай бұрын
the sintaxis is ugly , i prefered it if it was a interface with a HasNext and Next methods or something like that
@FloWoelki
@FloWoelki Ай бұрын
Yeah, the syntax is just mental :D Something like custom iterators in Rust is way more beautiful than in Go. But yeah, there were also a lot of discussions in the community; let's see where it goes.
@flarebear5346
@flarebear5346 Ай бұрын
The syntax is the way it is because of performance issues when using interfaces. This syntax allows you to use the functionality completely in the stack without needing to access the heap
@FloWoelki
@FloWoelki Ай бұрын
@@flarebear5346 Also, I think it might be against the idiomatic practices of Golang. So, Go emphasizes simplicity and directness, avoiding more complex design patterns. But all in all, you will probably most likely won't use iterators that much :D
@sm5172
@sm5172 Ай бұрын
It's like a dog scratching his right ear with his left leg. Terrible syntactic choices, in my opinion.
@pookiepats
@pookiepats Ай бұрын
Again, fix the Go Gopher art or this entire playlist is copyright infringement
@FloWoelki
@FloWoelki Ай бұрын
Thank you for the information. Would a short notice in the KZbin description be enough, or what do you recommend?
Boosting the performance by being unique in Go 1.23!
13:01
Flo Woelki
Рет қаралды 5 М.
Beyond the Clock: All about Timers & Tickers in Golang!
17:30
Flo Woelki
Рет қаралды 1,8 М.
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 17 МЛН
Creating custom struct tags in Golang is awesome!
24:42
Flo Woelki
Рет қаралды 9 М.
Dependency Injection | Prime Reacts
28:34
ThePrimeTime
Рет қаралды 346 М.
Level Up Your Golang: 5 Concepts You Need to know
19:22
Flo Woelki
Рет қаралды 11 М.
This is your last video about Golang Structs!
15:57
Flo Woelki
Рет қаралды 8 М.
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 66 М.
The standard library now has all you need for advanced routing in Go.
13:52
Type Assertions in Go: the only guide you need!
17:46
Flo Woelki
Рет қаралды 2,9 М.
Where Does Bad Code Come From?
42:21
Molly Rocket
Рет қаралды 199 М.
Characters do not exist in Go: Everything about runes!
17:43
Flo Woelki
Рет қаралды 2,7 М.