Skip to content

Function Generics Seems Redundant #2842

Closed
@Havvy

Description

@Havvy

Given this function signature:

fn bimap<K, V> (map: hashmap<K, V>) -> bimap<K, V>

The addition of <K, V> on the function name (bimap) seems redundant, and is an element of surprise to new users of the language (if I count as a new user.)

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