Thank you Mario. The type parameters is the feature that I was waiting for just to start with Go.
@ysomad2 жыл бұрын
Thanks man! Great introduction of the new version!
@MarioCarrion2 жыл бұрын
Thanks Alex, take care!
@JuniorMayhe2 жыл бұрын
Thanks for the good material Mario. Willing to see your take on workspaces. I have seen lots of confusing / hard to follow articles on that topic so far. Hopefully you can bring a hands on approach on this topic.
@MarioCarrion2 жыл бұрын
Thanks Junior, yes I'll have something covering workspaces in the near future.
@kawthooleidevelopers2 жыл бұрын
Thanks, man. Just starting out in Go. It is a great video.
@MarioCarrion2 жыл бұрын
Thanks for watching. I'm glad this video was useful. Take care.
@ANDIS622 жыл бұрын
Hi! Thanks! The most comprehensive description of the new features. In other reviews they mention only about Generics. Also I saw in a review about the generics, the type "any". I am new to Golang... this mean that we can mix types in generics implementation?
@MarioCarrion2 жыл бұрын
Hello! The type "any" is equivalent to the empty interface "interface{}" (it's literally an alias: pkg.go.dev/builtin#any); so literally any type in Go is "any"/"interface{}". Can we mix types in generics? Sort of, I mean the generic type can be used by "any" type, but when using that type itself we can not mix types, example: go.dev/play/p/-7L6Q9mckOJ
@SirRFI2 жыл бұрын
@@MarioCarrion Can this "any" alias be used anywhere instead of interface{}?
@MarioCarrion2 жыл бұрын
@@SirRFI Yes, go.dev/play/p/66l_l-3u_8H
@SirRFI2 жыл бұрын
Any plans on making video about ValueObjects (objects that hold single value which has to meet certain criteria, like email address or one of values, enum like) concept in Go? And about immutability in Go? Because exported types can be created without constructor-like function with blank values, which kinda defeat the purpose.
@MarioCarrion2 жыл бұрын
Yes I'm planning to do it part of the System Design series
@codetoanbug2 жыл бұрын
thank for sharing.
@MarioCarrion2 жыл бұрын
Thanks for watching. Take care!
@jereziah2 жыл бұрын
What're you using to draw on your screen like that?
@MarioCarrion2 жыл бұрын
It's called Presentify
@wMwPlay2 жыл бұрын
@PhiHDN2 жыл бұрын
Thank you! 👍🏼
@MarioCarrion2 жыл бұрын
Thanks for watching Phi! Take care
@FPChris2 жыл бұрын
What Go needs is function parameter default values and struct member default values.
@MarioCarrion2 жыл бұрын
I can see a lot of people benefiting from your suggestion, have you considered sending a proposal? github.com/golang/proposal
@Elite75552 жыл бұрын
And there are a thousand other things Go "desperately" needs. But what would Go look like if they were all realized?
@smjure2 жыл бұрын
Mario could you please make a video on the new feature of go workspaces and its architecture in complex projects with local interdependencies as an option, of course simplified :) I'd love to see it how pro devs like you tackles it
@MarioCarrion2 жыл бұрын
Hello, yes! That's another video I'm working on at the moment. Take care!
@iRoNYwho2 жыл бұрын
Thank you.
@MarioCarrion2 жыл бұрын
You're welcome! Best
@Levelord922 жыл бұрын
I think Homebrew is ready now with 1.18
@MarioCarrion2 жыл бұрын
You're right! 🎉
@SeaRich2 жыл бұрын
Benchmark generic?
@MarioCarrion2 жыл бұрын
Would you mind elaborating a bit more?
@Elite75552 жыл бұрын
@@MarioCarrion, I think what they mean is how performant generic type parameters are compared to interfaces. But the Go team already said that performance most likely wouldn't be any better.