-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Reconcile naming: RegexGeneratorAttribute to RegexAttribute #62123
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
We also have prior art shipped in .NET 6: I like that the .NET 6 names that they do include |
For interop source generator, we can use this as an opportunity to switch to more platform neutral naming. |
Tagging subscribers to this area: @eerhardt, @dotnet/area-system-text-regularexpressions Issue DetailsRe: #62105 (comment). In the upcoming .NET 7, we have It would be nice to match their names at this early stage, preferably by renaming
|
Interop source generator API proposal is tracked by #46822 (it is not in public surface yet). This issue can be used to track what if anything we want to change for RegEx. |
More ideas: |
As Jan suggested, let's leave interop discussion in #46822. I moved the interop suggestions into that issue. |
Seems from the discussion that this is mainly to rename GeneratedDllImportAttribute right, and not so much for renaming RegexGeneratorAttribute? |
@joperezr,
|
@terrajobst @stephentoub @bartonjs thoughts on the above comment? If we want to change it, now is likely our last chance of doing so. |
RegexGeneratorAttribute is unique amongst LibraryImportAttribute, JsonSerializableAttribute, and LoggingMessageAttribute including "generator" in the name. I'd be ok with RegexAttribute. |
namespace System.Text.RegularExpressions;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
-public partial class RegexGeneratorAttribute : Attribute
+public partial class GeneratedRegexAttribute : Attribute
{
// ....
} |
Re: #62105 (comment).
In the upcoming .NET 7, we have
[GeneratedDllImport]
and[RegexGenerator]
attributes to annotate partial methods for source generators.It would be nice to match their names at this early stage, preferably by renaming
[GeneratedDllImport]
to[DllImportGenerator]
.The text was updated successfully, but these errors were encountered: