Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I like to get comments for anything downvoted. Commented Oct 10, 2021 at 23:02
  • 1
    (not voted) I've seen a DSL implemented in C#. It felt quite good to use - and in case anything was not supported, I could fall back to C# features. That was definitely "code in code" but it turned out really well. Commented Oct 11, 2021 at 14:14
  • @ThomasWeller thanks for the comment. I'm not sure how DSL applies here. I am simply responding to the question. Having ProcessingType is like a design decision in an RPC protocol - an unnecessary design at that. The Web Router already enables mapping of a URI to function. You could have a Router in a Router in a Router - what's the point? Commented Oct 11, 2021 at 23:38
  • I have updated my answer some more with a code example. Commented Oct 11, 2021 at 23:45