DigitecGalaxus / Galaxus.Functional

A package bringing popular functional abstractions (e.g. Option or Result) to C#.
Other
37 stars 12 forks source link

What's up with the parentheses around directory names? #5

Closed MindSwipe closed 4 years ago

MindSwipe commented 4 years ago

It's kinda odd and I've never seen in before

NoelWidmer commented 4 years ago

Hello @MindSwipe :) This is a JetBrains convention which is handy when using Rider (maybe even Resharper?). A directory name in parentheses means it is not part of the namespace. This allows you to structure your code without triggering warnings.

MindSwipe commented 4 years ago

Ah I see, I haven't used Rider yet as I'm used to Visual Studio + ReSharper, where you can achieve the same by setting the Namespace Provider property of a directory to false, which in turn generates a .DotSettings file which specifies it.

Thanks for the quick response