#Functions

3 posts

Modern Python Basics #5: Functions — argument patterns
5 min read

Modern Python Basics #5: Functions — argument patterns

Defaults, *args/**kwargs, positional-only(/), keyword-only(*) — every tool for writing function signatures expressively.

JavaScript Basics #4 Functions
6 min read

JavaScript Basics #4 Functions

The differences among the three function definition styles (declaration/expression/arrow), default and rest parameters, and what hoisting is.

Go Basics #4 Functions, Multiple Return, error Type
7 min read

Go Basics #4 Functions, Multiple Return, error Type

The various forms of function definition, Go's signature multiple-return pattern, and the error type with the if err != nil idiom you'll meet most.