Skip to content

Underscores in vendor's names #212

Closed
@kornelski

Description

@kornelski

🚲 ⚠️

It strikes me as odd that the vendor SIMD types and functions have retained leading underscores from C, e.g. __m256i instead of m256i.

I assume the underscores are a wart that exist only because C doesn't have namespaces and needs to be extra paranoid to about conflicts with other symbols. Rust does have proper namespacing. Therefore, could Rust use names without the underscore prefixes?

The names with underscores are quite ugly IMHO, especially that it's an inconsistent mix of 0/1/2 underscores existing depending on historical and implementation-specific trivia.

Names without leading underscores are IMHO cleaner and look like something belonging to stdlib rather than a bolted-on hack. Google and DDG are able to find these names without the underscore prefix.

[I see these names are imported from coresimd so they're no striclty stdsimd's problem, but I suggest renaming them in coresimd if needed too]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions