-
Notifications
You must be signed in to change notification settings - Fork 641
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
support edge compilers in non-global namespaces #45
Comments
I like the second better as well, if fits a pattern that I saw elsewhere in the JavaScript code too. The original namespace that I had in my F# POC was Edge.fs.EdgeCompiler before I switched to global. |
Pattern #2 works. Date: Sun, 28 Apr 2013 09:36:35 -0700 Currently edge expects to find the EdgeCompiler class in the global namespace of an assembly. To support multiple edge compilers per assembly as well as disambiguate compilers in C# apps (e.g. tests) it would be useful to support edge compilers in a non-global namespace. Two solutions that come to mind:
I like 2 better. — |
@tjanczuk why not just consolidate to language + compiler, i.e. CsCompiler, ScsCompiler, FsCompiler etc? Seems like Edge is redundant here. |
Why keep repeating edge in the compiler name? You could male the convention Edge.lang+compiler ie Edge.CsCompiler Also you could drop the namespace requirement even and just look for lang+compiler. -----Original Message----- Pattern #2 works. Date: Sun, 28 Apr 2013 09:36:35 -0700 Currently edge expects to find the EdgeCompiler class in the global namespace of an assembly. To support multiple edge compilers per assembly as well as disambiguate compilers in C# apps (e.g. tests) it would be useful to support edge compilers in a non-global namespace. Two solutions that come to mind:
I like 2 better. — |
I don't want to be in the business of capitalizing the first letter of the technology name to construct a name (either namespace or class name). Beyond that I don't care too much what convention we use. So let me do `Edge.py|cs|ps|fsharp|scs|whatever.EdgeCompiler. I will also fall back to looking for the EdgeCompiler in the global namespace such that existing compilers continue to work. |
Currently edge expects to find the EdgeCompiler class in the global namespace of an assembly. To support multiple edge compilers per assembly as well as disambiguate compilers in C# apps (e.g. tests) it would be useful to support edge compilers in a non-global namespace.
Two solutions that come to mind:
Edge.foo.EdgeCompiler
class. In case of C# that could beEdge.cs.EdgeComiler
. In case of Python it would beEdge.py.EdgeCompiler
.I like 2 better.
The text was updated successfully, but these errors were encountered: