RSSAmplifier

Posts on jub0bs.com · Aug 15, 2018

Defer: sweet, but no syntactic sugar

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

defer , in a nutshell ¶ When learning Go, one quickly comes across the defer keyword. For instance, the Tour of Go introduces defer thus: A defer statement defers the execution of a function until the surrounding function returns. The deferred call’s arguments are evaluated immediately, but the function call is not executed until the surrounding function returns. package main import 'fmt'…

Read on //jub0bs.com/posts/2018-08-15-defer/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.