justforfunc #18: understanding Go's type aliases

preview_player
Показать описание
Go 1.9 was just released and it comes with a change to the language: type aliases!
You can read more about it here:
Рекомендации по теме
Комментарии
Автор

Your channel is one of the best things I ever found in internet. Thanks so much.

marksaravi
Автор

What a great episode! You just did grind everything to the bits! Thanks.

AlexanderDemin
Автор

Thanks Francesc for your invaluable videos, an integral part of my continuous learning of this fantastic programming language.

paulyeoh
Автор

thanks Francesc. clear explanation and learned a lot. Could you do episode about package, dependency management strategy for the relatively large project?

meowmeow
Автор

good episode, i wasn't sure how or why id bother to ever use type aliases besides packages changing location / name and this video actually gave me some useful scenarios where it can come in handy.

AnthonySBD
Автор

19:30 I have the same damn issue with vscode xD Always have to move shit around after I create it. I absolutely love it though, and credit you fully for making me switch to it. Good episode by the way (as always)!

theyruinedyoutubeagain
Автор

Thanks Francesc, I learned learn a lot from your episodes, keep sharing.

dksingh
Автор

Another great episode! Thank you, Francesc.

alesresta
Автор

For channels, I often end up naming a type, just so I can pass groups of things into and out of the channel more easily. With type aliases, it could make more sense to use type chanResults = struct { int; err } or whatever, so that you aren't locking yourself down to one type implementation.

theearthboundkid
Автор

Great episode, I get the same issues recording, I always find the second time is best. Really useful info too. Go aliases. Woo.

mybigbeak
Автор

I just found your channel. I really enjoy the videos, keep making them.

nexdev
Автор

Thank you for explaining this, otherwise I would have never understood the point.

blondie
Автор

Why is it that you can print the celsius without calling `c.String()`?

Cutiepie-kyoh
Автор

In the minute 30:55 you finally move the code from the old to the new package but I can't see the difference from it and moving forward without the alias feature.

I mean I'm lost because I don't see the benefits or even the possible problems, why you can't move code directly from one package to another via copy-paste?

Thanks for your videos by the way, are amazing!

pmareke
Автор

I dont get why at 2:22 it prints "10.00 C", wouldnt be the code for that at line line 13 like "fmt.Println(c.String())" because thats how you call a method?

johnbalvin
Автор

I agree that Fahrenheit doesn’t make sense in general. Freezing is zero, period.

dansplain
Автор

Just out of curiosity is there a way where I could find/print out all alias to a type?
Great Episode btw

alaypatel
Автор

Your VS Code looks beautiful, how can I setup like yours?

kitgary
Автор

I promise you dude, as golang popularity grows this channel will escalate

swileniwanow
Автор

farenheit don't no make any sense to me :D hahaa

niranjangodbole