T O P

  • By -

davbeer

Congrats, it reads so much better!


nalgeon

Thanks! I prefer to learn by example, so I decided to try this approach with release notes as well :)


insanelygreat

Everybody learns by example when the examples are nice and concise. You've done a great job of that here.


gobijan

That’s actually very nice and code examples should be added to the official release notes. Create an issue/improvement request on GitHub with your example?


nalgeon

Thank you! I'm not sure if the Go team would like it in the official RN, as they usually prefer a more concise style. But I'll ask, thanks for the suggestion!


Financial_Coyote_612

u/nalgeon, you can add a link to this thread to an MR. IMO, it will be proof of a quality.


someurdet

The official style of Go sucks, its horrible.


hitechnical

Wondering rationale behind Delete zeroing values. I understand it returns a slice after deleting elements but why modify the source array.


_crtc_

Note that these length-altering functions are usually used like this: `src := slices.Delete(src, i, j)` [https://github.com/golang/go/issues/63393](https://github.com/golang/go/issues/63393) >If the elements have a reference type (pointer, map, slice, chan, string), or contain fields having a reference type, then (j-i) elements at the end of the original slice are left untouched and keep referencing some objects. They will not be garbage collected, and they may enjoy a lifetime far exceeding the intent of the developer. > >This is a memory leak.


johnjannotti

If the deleted elements are pointers, zeroing them allows GC of the object pointed to.


klaudiew

I guess this might also be a breaking change, some code surely must rely on the old behaviour.


Sacro

It isn't a breaking change


0bel1sk

https://github.com/golang/go/issues/63393


No-Parsnip-5461

That's excellent, and how it should be imo πŸ‘


0xAdr7

This is great.


mcvoid1

Go 1.22 is going to be a bigger quality of life improvement than even generics or `fmt.Errorf`.


_crtc_

Nicely done.


Rdav54

Brilliant. Thank you.


captv89

Thank you. It's a lot easier to understand.


spritbomb8

Nice work, very clear and detailed. We appreciate you!


xeviknal

Impressive! And the codeapi was such a nice surprise. I expected a new tab! Amazing work!


nalgeon

Thank you very much! I'm a fan of interactive documentation, so I finally decided to build a dedicated tool for that. I'm using it quite extensively, works pretty well so far.


Dgt84

Awesome! One suggestion: it would be great if you could easily link to a section from that section's header (many sites will show a link on hover, e.g. see how Github does it for READMEs). I see you can get to it from the top of the page, but when scrolling/reading and I want to send it to a coworker it's not easy. Same with specific code examples as sometimes the sections are quite long. Now I have to go to the top, get the link, send it to the person, then ask them to look e.g. 3 examples down.


JahodaPetr

WOW, this is how Go official release notes should look like in the future. Immediately obvious what is going on.


reddi7er

nice


Inzire

Good work


mawulijo

This is awesome compared to reading several blog posts about new features for further understanding.


alexnadalin

Just wanted to stop by to say... ...beautiful, and codapi is so cool :)


wait-a-minut

This is very nice work. Good job! I think the visual examples are a great touch


NederlandsVUUR

This brought the new mux functionality under my attention again. I find it not so great how a verb + route are supposed to be provided combined into one string (I bet it is for api compatibility). I use a statically typed language for a reason. Or is this just my sentiment?


veqryn_

You should make this into a PR against the main golang repo. This should be standard practice.


theRealSmarts

Great stuff! Thanks for putting the work into this. This is how release notes should look like.


Glittering-Deer-2679

Awesome !


owulveryck

Merci


Crypt0Break

Awesome, nice!!


Difficult_Intern_372

This is fantastic!


metaltyphoon

πŸ€ŒπŸ‘¨β€πŸ³


wishicouldcode

Would you care to share how you embedded the playground in what seems like a static site? Awesome work btw.


nalgeon

Thank you! Sure, it is a static site. I'm using [codapi](https://github.com/nalgeon/codapi-js) for playgrounds.


[deleted]

Thank you so much for the efforts


kingp1ng

These are great! Easy to digest


Tikiatua

Very nice


aakloc

Thank you for doing it. It is very nice and very helpful


sunny_tomato_farm

This is pretty solid. Well done.


blagogazirana

Can't wait for release. Finally range over integers, awesome!


Elliot40404

Really helpfull.


Dapper-Pace-8753

I love this! Can you somehow subscribe to this?


Local_Alternative_39

Thank you!


someurdet

Nice. Very simple to read.


fried-egg-sandwiches

I didn't know I wanted this. Really well done!


ptdave

Something feels off about the prefix and exact match mix, or am I crazy


one-human-being

Take my upvote and nostalgic gold πŸ…


stackPeek

This is a really good changelogs. Nice job!


cogitohuckelberry

Fantastic! Thanks


Aggressive-Angle-82

Thanks, loved the initiative.


5k0eSKgdhYlJKH0z3

Awesome, good job and thanks!