Tag

nil

0 views collected around this technical thread.

NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jun 16, 2023 · Fundamentals

The Semantics of nil in Swift

The article explains that Swift’s nil differs from Objective‑C’s null pointer by representing ‘no value’ for any type through optionals, details how various optionals (Bool?, String?, class?, enum?) are encoded in memory, shows the extra byte cost for Int?, and advises minimizing optional Int fields in structs, using 0 when appropriate.

Memory OptimizationSwiftValue Types
0 likes · 6 min read
The Semantics of nil in Swift
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 21, 2021 · Backend Development

Mastering Aviator: Advanced Java Expression Engine Examples

This guide demonstrates how to use the Aviator 5.2.5 expression engine on Java 8 with practical examples covering ternary operators, regex matching, variable shortcuts, nil handling, date comparisons, big number calculations, the powerful seq library, execution modes, and debugging techniques.

BigDecimalJavaaviator
0 likes · 7 min read
Mastering Aviator: Advanced Java Expression Engine Examples
Sohu Tech Products
Sohu Tech Products
Apr 14, 2021 · Backend Development

Understanding nil in Go: Variable Definitions, Memory Allocation, and Type Behavior

This article explains the nature of Go's nil keyword, how it interacts with different types such as slices, maps, channels, interfaces, pointers and functions, and clarifies variable definition, zero‑value allocation, make versus var, and the compiler's nil handling semantics.

GoMemory AllocationVariables
0 likes · 15 min read
Understanding nil in Go: Variable Definitions, Memory Allocation, and Type Behavior