microsoft / microsoft/typespec

Switch records to classes

Open
#6,592 3 comments 0 reactions 0 assignees View on GitHub
emitter:client:csharp
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.