September 2022
Intermediate to advanced
384 pages
10h 24m
English
This chapter covers
defer argumentsA function wraps a sequence of statements into a unit that can be called elsewhere. It can take some input(s) and produces some output(s). On the other hand, a method is a function attached to a given type. The attached type is called a receiver and can be a pointer or a value. We start this chapter by discussing how to choose one receiver type or the other, as this is usually a source of debate. Then we discuss named parameters, when to use them, ...
Read now
Unlock full access