Proposed Stripped-Down C#
In this lesson we are going to propose a stripped-down version of C# and introduce a new operator.
We'll cover the following...
Stripped Down C#
Without further ado, here is our proposed stripped-down C# that could be a domain-specific language (DSL) for probabilistic
workflows; as we’ll see, it is quite similar to both enumerator blocks from C# 2, and async
/await
from C# 5.
Workflow
-
The workflow must be a function with a
return
type ofIDiscreteDistribution<T>
...