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
Style note: I'm currently trying to follow the pattern of choosing ".get_Y" vs. ".as_Y" names as follows...
"get": X::is_Y / X::get_Y pairs
- when Y is conceptually "NOT all of" the X
- for example, expression_statement::get_expression because even though the expression is most of the statement the expression-statement contains that extra `;` and is at a different conceptual layer
"as": X::is_Y / X::as_Y pairs
- when Y is conceptually "all of" the X
- for example, statement::as_expression_statement because it's really still the whole statement
- with the idea that this could legitimately become an actual `as` operator
I may not be 100% consistent on that right now, but I think the current API is pretty close to that
0 commit comments