How Go 1.22 fixed an issue that caused Google problems

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии •

  • @tariik.h
    @tariik.h 2 дня назад

    The correct way of addressing the issue is not to redeclare the variable, but to use func(v string) instead of func().
    func() uses a pointer implicitly, whereas func(v string) copies the value.
    If we use func(), the value might be modified by some other part of the program.

  • @pasokoner
    @pasokoner 2 месяца назад

    What is that extension, that let you see the type of variable in a loop.

  • @abiodun6897
    @abiodun6897 8 месяцев назад

    thanks , i recently go into go again after some years had no idea this was fix , btw whats you editor config

    • @FloWoelki
      @FloWoelki  8 месяцев назад +1

      awesome stuff!
      generally, I use Zed at the moment as my main editor. so, I was switching from nvim to Zed. but the editor theme is the official GitHub theme.

    • @abiodun6897
      @abiodun6897 8 месяцев назад

      @@FloWoelki thank you 👍🏽

  • @ayushtripathi4514
    @ayushtripathi4514 4 месяца назад

    can you please create a video on you developer workflow? Editor config etc

    • @FloWoelki
      @FloWoelki  4 месяца назад

      Sure, it's in the pipeline :)

    • @ayushtripathi4514
      @ayushtripathi4514 4 месяца назад

      @@FloWoelki awesome. Recently found your channel, already loving the content. ❤️

    • @FloWoelki
      @FloWoelki  4 месяца назад

      @@ayushtripathi4514 Much appreciated, thank you! :)

  • @l_ukas
    @l_ukas 5 месяцев назад

    Isn't this a huge breaking change for existing software?

    • @FloWoelki
      @FloWoelki  4 месяца назад

      Not really, because the original code itself did not really change. The only change was in the Go compiler itself.

  • @mikeafter5
    @mikeafter5 5 месяцев назад

    Thanks.

    • @FloWoelki
      @FloWoelki  5 месяцев назад

      You're welcome :)