Skip to content

Why Use Unfriendly &&char? #26

@Wajinn

Description

@Wajinn

The use of &&char for the public functions in vlang's raylib and raygui bindings looks unfriendly and perplexing. Other bindings, for their public functions, use the equivalent of []string. Which makes more sense.

For the example below, text arguably should be an array of string ([]string). The count parameter next to it, would be the array.len, for what's in the array.

pub fn gui_list_view_ex(bounds Rectangle, text &&char, count int, scroll_index &int, active &int, focus &int) int

And even more interesting, V's documentation doesn't elaborate on &&char usage, other than its a kind of interoperability type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions