rfc:match_expression
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:match_expression [2020/04/25 09:55] – Describe gotcha in (true) ilijatovilo | rfc:match_expression [2020/04/25 10:03] – Adjust adt syntax ilijatovilo | ||
---|---|---|---|
Line 335: | Line 335: | ||
===== Miscellaneous ===== | ===== Miscellaneous ===== | ||
==== Arbitrary expressions ==== | ==== Arbitrary expressions ==== | ||
- | A match condition can be any arbitrary expression. Analogous to '' | + | A match condition can be any arbitrary expression. Analogous to '' |
<code php> | <code php> | ||
Line 437: | Line 437: | ||
// Algebraic data types if we ever get them | // Algebraic data types if we ever get them | ||
- | let Ast\BinaryExpr($lhs, | + | let Ast::BinaryExpr($lhs, |
} | } | ||
rfc/match_expression.txt · Last modified: 2020/05/09 15:59 by ilijatovilo