Skip to content

Switch records to classes #6592

@JoshLove-msft

Description

@JoshLove-msft

There are some usability issues that come into play with records. For instance, if a record has a primary constructor, the constructor parameter needs pascal cased parameters (as these define the properties), but the explicit constructors use camelCase. It can then be easy to miss the constructor overloads especially when explicitly naming the argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions