Skip to content

Commit

Permalink
Make type parameter for future and stream optional
Browse files Browse the repository at this point in the history
Fixes #65
  • Loading branch information
jclark committed Apr 17, 2019
1 parent 12186ea commit b253ba6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lang/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -1603,13 +1603,17 @@ <h5>Visibility</h5>
<h4>Futures</h4>

<pre
class="grammar">future-type-descriptor := <code>future</code> type-parameter
class="grammar">future-type-descriptor := <code>future</code> [type-parameter]
</pre>
<p>
A future value represents a value to be returned by a named worker. A future
value belongs to a type <code>future&lt;T></code> if the value to be returned
belongs to T.
</p>
<p>
A value belongs to a type <code>future</code> (without the type-parameter)
if it has basic type future.
</p>
<h4>[Preview] Services</h4>

<pre
Expand All @@ -1632,7 +1636,7 @@ <h4>[Preview] Services</h4>
<h4>[Preview] Streams</h4>

<pre
class="grammar">stream-type-descriptor := <code>stream</code> type-parameter
class="grammar">stream-type-descriptor := <code>stream</code> [type-parameter]
</pre>
<p>
A value of type <code>stream&lt;T></code> is a distributor for values of type
Expand All @@ -1641,6 +1645,10 @@ <h4>[Preview] Streams</h4>
pure type.
</p>
<p>
A value belongs to a type <code>stream</code> (without the type-parameter)
if it has basic type stream.
</p>
<p>
The implicit initial value of a stream type is a newly created stream, ready to
distribute values.
</p>
Expand Down

0 comments on commit b253ba6

Please sign in to comment.