Skip to content

Commit ac0743d

Browse files
committed
Clarify that throw is not allowed.
1 parent 46176cd commit ac0743d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

proposals/025-lambda-1.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Implementation: [PR 6914](https://github.com/shader-slang/slang/pull/6914)
1212

1313
Author: Yong He
1414

15-
Reviewer: Theresa Foley
15+
Reviewer: Theresa Foley, Jeff Bolz
1616

1717
## Background
1818

@@ -212,6 +212,8 @@ allowed:
212212
IFunc<float, int> lam = (float x) => x;
213213
```
214214

215+
Additionally, `throw` statements are currently not allowed in lambda expressions.
216+
215217
# Conclusion
216218

217219
This proposal adds limited support for lambda expressions that cannot mutate its captured environment.

0 commit comments

Comments
 (0)