#Functions
3 posts
5 min read
Modern Python Basics #5: Functions — argument patterns
Defaults, *args/**kwargs, positional-only(/), keyword-only(*) — every tool for writing function signatures expressively.
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.
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.