Skip to content

Comptime check on format strings #556

@pierrec

Description

@pierrec

Having checks on the formatters at compile time would avoid runtime errors such as the following:

type Vector2 = struct { x, y: real32 }
pos := rl::GetMousePosition() // Vector2
msg := sprintf("x=%d y=%d", pos.x, pos.y)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions