Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

The with keyword is missing documentation for record "manipulation" #157

Closed

Description

The with keyword has multiple meanings in F# like Match or Type Expressions. The documentation for that is aggregated here: https://github.com/Microsoft/visualfsharpdocs/blob/live/docs/conceptual/keyword-reference-[fsharp].md
What seems to be missing (or I was not able to find it) is the documentation for the record manipulation/copying syntax. This is, what F# for fun and profit writes about here http://fsharpforfunandprofit.com/posts/correctness-immutability/ . Explicitly this part:
let alice = {john with FirstName="Alice"}
As it is an important part of the language it would be nice to have some official documentation for it (also that I know what it is called correctly ;) ).

Activity

  1. dend commented on Jun 3, 2016

    @dend
    Contributor

    Kevin Ransom (@KevinRansom) Reed Copsey, Jr. (@ReedCopsey) - what do you think?

    IMO this sounds like something you (Christian Steinert (@ChrSteinert)) can submit a PR for.

  2. ChrSteinert commented on Jun 3, 2016

    @ChrSteinert
    ContributorAuthor

    I agree. Would love to, yet need to know how it is called! :DAlso I'd like to get some guidance on where to put it etc.

    On Fri, Jun 3, 2016 at 9:19 AM -0700, "Den Delimarsky" notifications@github.com wrote:

    Kevin Ransom (@KevinRansom) Reed Copsey, Jr. (@ReedCopsey) - what do you think?

    IMO this sounds like something you (Christian Steinert (@ChrSteinert)) can submit a PR for.


    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub:
    #157 (comment)

  3. ReedCopsey commented on Jun 3, 2016

    @ReedCopsey
    Contributor

    It's called a "copy and update record expression" (whew, that's a
    mouthful!).

    It's currently documented here:
    https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/records-[fsharp]

    I agree it's be nice to add to keywords.

    Reed
    On Jun 3, 2016 9:31 AM, "Christian Steinert" notifications@github.com
    wrote:

    I agree. Would love to, yet need to know how it is called! :DAlso I'd like
    to get some guidance on where to put it etc.

    On Fri, Jun 3, 2016 at 9:19 AM -0700, "Den Delimarsky" <
    notifications@github.com> wrote:

    Kevin Ransom (@KevinRansom) Reed Copsey, Jr. (@ReedCopsey) - what do you think?

    IMO this sounds like something you (Christian Steinert (@ChrSteinert)) can submit a PR for.


    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub:

    #157 (comment)

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #157 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe/AFCUmvTmM47vf1_YOHVxoy-YnA-OaLyPks5qIFbggaJpZM4ItQai
    .

  4. ChrSteinert commented on Jun 4, 2016

    @ChrSteinert
    ContributorAuthor

    What should I take for the ms.assetid?

  5. dend commented on Jun 4, 2016

    @dend
    Contributor

    Are you creating a new article or adding content to the existing one?

    If it's an existing article, the asset ID should be the same as it is today. If it's a new article, simply generate a new GUID and use it as the ID.

  6. added this to the JUN-2016 milestone on Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions