Skip to content

Price should be double instead of num #81

@ciriousjoker

Description

@ciriousjoker

Why would you use num in Dart? I haven't encountered a case where using num made practical sense, but it especially doesn't make sense when the thing you have is already a floating point number, aka a double.

By returning num, when using the price you have to convert it back to a double even though it already is one.

CleanShot 2023-12-05 at 19 17 19@2x

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