issues
search
dotnet-websharper
/
core
WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
595
stars
50
forks
source link
Add support for C# 12.0 features
#1367
Open
Jand42
opened
10 months ago
Jand42
commented
10 months ago
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
[x] Primary constructors for non-record classes
[x] Tests added
[x] Collection expressions and
..
operator
[x] Tests added
[x]
ref readonly
parameters (added for API upgradeability purposes, no real new functionality, C# CodeReader needs to treat it the same as
in
)
[x] Tests added
[ ] Default lambda parameters - should be handled as other defaults
[x] 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
New language features: (See What’s new in C# 12)
..
operatorref readonly
parameters (added for API upgradeability purposes, no real new functionality, C# CodeReader needs to treat it the same asin
)