Experimental browser for the Atmosphere
Started 2025 by diving deeper into closures in #golang and coming from a Python world, it took me a solid minute to understand the nuances with anonymous functions🤯 What is the output when `SumClosure(10, 20)` in each case? Try answering and maybe you can also get SumClosure 🤪
Jan 2, 2025, 4:16 AM
{ "uri": "at://did:plc:ngpi4ahujcb7mbr4336upn4n/app.bsky.feed.post/3leq7r5qw2s2a", "cid": "bafyreidgg5yv42qghmxgkz2ioneyapst62c7y6u6dwbloumfjy6ris4wga", "value": { "text": "Started 2025 by diving deeper into closures in #golang and coming from a Python world, it took me a solid minute to understand the nuances with anonymous functions🤯 What is the output when `SumClosure(10, 20)` in each case? Try answering and maybe you can also get SumClosure 🤪", "$type": "app.bsky.feed.post", "embed": { "$type": "app.bsky.embed.images", "images": [ { "alt": "", "image": { "$type": "blob", "ref": { "$link": "bafkreif67gxgo2mtwtntva57vj4lmsczc3xlay22wyzrfpgdnwvh3oj6hi" }, "mimeType": "image/jpeg", "size": 223445 }, "aspectRatio": { "width": 1010, "height": 990 } } ] }, "langs": [ "en" ], "facets": [ { "index": { "byteEnd": 54, "byteStart": 47 }, "features": [ { "tag": "golang", "$type": "app.bsky.richtext.facet#tag" } ] } ], "createdAt": "2025-01-02T04:16:47.229Z" } }