the.bay.news

The dot "." overuse

Ziggit
The dot "." overuse
Hello, this is my very first post. I’ve been a casual reader, and the community seems welcoming. I’m learning Zig on my spare time… One thing that’s been confusing is the overuse of the dot. Field/member access: engine.health Explicit pointer dereferencing: engine.*.health Pointer-to-struct field access: engine.health (instead of engine.*.health, or a different notation engine->health) Struct field initializer: DroneEngine{ .health=100 }; Enum literal: var status: EngineStatus = .off Anonymou...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.