Parameters

Scala

Scala - By-Name Parameters

• By-name parameters in Scala delay evaluation until the parameter is actually used, enabling lazy evaluation patterns and control structure abstractions without macros or special compiler support.

Read more →
Go

Go Generics: Type Parameters in Go

Go 1.18 introduced type parameters, commonly known as generics, ending years of debate about whether Go needed them. Before generics, developers faced an uncomfortable choice: write duplicate code…

Read more →