Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#347·gopherjs

Range assignment bug

Author: ruscoCreated Nov 3, 2015Updated Feb 14, 2024
Labelsbug

From the recent "3 gotchas" discussion on reddit (https://www.reddit.com/r/golang/comments/3r8yz1/3_go_gotchas/):

Gopherjs: http://www.gopherjs.org/playground/#/Kj7gpCZpI-

output: {A} {B} {C} &{A} &{B} &{C}

versus Go: http://play.golang.org/p/w3apET-wcX

output: {A} {B} {C} &{C} &{C} &{C}

Source: gopherjs/gopherjs

View original on GitHubView discussion on GitHub