Skip to content

Idiomatic Rust #2

@matprec

Description

@matprec

Wouldn't it be more idiomatic to return Result instead of asserting hr == 0 all over the place?

Not exposing the abillity to fail and instead panicing makes the api unidiomatic in my opinion, since e.g. FontDescriptor can be manipulated by the user, which in turn can cause hr != 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions