Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

snippet support for records - why not start at NamedFiedPuns? #4690

Open
@MangoIV

Description

Currently, the snippets for records generate things like this:
Foo {foo = _foo}

I don't like that because if there are multiple fields, I need to delete tons of placeholders (and I usually don't go through them by tabbing) and it works really bad with fields that e.g. follow the _ lens convention (because then it generates things like Foo {_foo = __foo} which is even more noise.

Is there a specific reason why we couldn't start at NamedFieldPuns ala
MkFoo {foo, bar, baz} and then let the user extend if they want to give their fields an alias?

Thank you ~

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /