Skip to content

Anonymous record execution order #6487

Description

@kevmal

Fields are ordered as outlined in the RFC. However,

{|
    C = printfn "0"
    B = printfn "1"
    A = printfn "2"
|}

outputs

2
1
0

Maybe the RFC just needs to be updated but without thinking about it I would still just assume top-down execution. Doesn't seem too crazy to have something like

{|
    Id = binaryReader.ReadInt32()
    DateTime = binaryReader.ReadInt64()
    ....
|}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions