CBielstein / APRSsharp

APRS# - Modern APRS software for the amateur radio community
MIT License
12 stars 5 forks source link

Enable C# 10 for const string interpolation #81

Closed CBielstein closed 2 years ago

CBielstein commented 3 years ago

Description

C# 10 supports string interpolation for constants. This would be helpful in places like the regex file at src\AprsParser\RegexStrings.cs.

Acceptance Criteria

eddywine commented 3 years ago

This is an interesting feature I thought it was already there in C# but I have seen some literature on C#10. Definitely a very good issue and will read around it and understand more before our next meeting

CBielstein commented 3 years ago

This is an interesting feature I thought it was already there in C# but I have seen some literature on C#10. Definitely a very good issue and will read around it and understand more before our next meeting

@eddywine This is really a longer-term issue that I opened to remind us to do it someday. Current versions of C# don't allow a variable value as part of a constant definition, even if that variable is itself constant. C#10 will likely require .NET 6 support which isn't supposed to release until later this month, so we have plenty of time on this issue.