Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for C# 12.0 features #1367

Open
7 of 8 tasks
Jand42 opened this issue Dec 1, 2023 · 0 comments
Open
7 of 8 tasks

Add support for C# 12.0 features #1367

Jand42 opened this issue Dec 1, 2023 · 0 comments

Comments

@Jand42
Copy link
Member

Jand42 commented Dec 1, 2023

New language features: (See What’s new in C# 12)

  • Generic math support - not planned, would not be efficient in JS, and provides nothing Macros/Inlines can't do
  • Primary constructors for non-record classes
    • Tests added
  • Collection expressions and .. operator
    • Tests added
  • ref readonly parameters (added for API upgradeability purposes, no real new functionality, C# CodeReader needs to treat it the same as in)
    • Tests added
  • Default lambda parameters - should be handled as other defaults
    • Tests added
  • Inline arrays - not planned, .NET perf feature, not meant for end users
  • Experimental attribute - C# compilation handles this to raise a warning, WS has nothing to do
  • Interceptors - not planned, experimental feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant