Skip to content

Remove bare function types, replace with inference #3320

Closed

Description

@nikomatsakis

We should remove the types for bare functions altogether and just infer the appropriate closure type when referring to an item.

Activity

  1. nikomatsakis commented on Sep 12, 2012

    @nikomatsakis
    ContributorAuthor

    Deferring to 0.5.

  2. nikomatsakis commented on Oct 6, 2012

    @nikomatsakis
    ContributorAuthor

    I've been working on this, current patch is blocked on #2263.

  3. pnkfelix commented on Mar 25, 2013

    @pnkfelix
    Contributor

    The goal of this bug is not clear to me. If the goal is to enable the use of inference in more contexts, then by all means, lets do that. But if the goal is to remove the option of writing down an explicit type, then I would probably not be in favor of it. (The ability to declare types explicitly has been a useful tool for me in narrowing down cases where type inference signals a problem.)

  4. pnkfelix commented on Mar 25, 2013

    @pnkfelix
    Contributor

    In any case, this is not something that should block 0.6.

  5. nikomatsakis commented on May 7, 2013

    @nikomatsakis
    ContributorAuthor

    Plans have changed somewhat. We are keeping the bare fn types. I think this issue is no longer relevant.

  6. added a commit that references this issue on May 15, 2021
  7. added a commit that references this issue on Mar 3, 2024
  8. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-type-systemArea: Type systemC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions