You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cpp2/functions.md
+2
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,8 @@ main: ()
213
213
>
214
214
> - A function call written in Cpp2 `x.f()` member call syntax always treats a non-`#!cpp void` return type as not discardable, even if the function was written in Cpp1 syntax that did not write `[[nodiscard]]`.
215
215
216
+
For details and rationale, see [Design note: Explicit discard](https://github.com/hsutter/cppfront/wiki/Design-note%3A-Explicit-discard).
217
+
216
218
217
219
### <aid = "function-types"></a> Using function types
0 commit comments