-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make "this" the implicit context object
Summary: Today `.` is used as the implicit context object. But there's a problem... An expression like `(func .)` has the intent of calling `func` with the value of the implicit context object. However, the parser thinks that `.` is a separator for variable lookup. The grammar is just ambiguous here. The fix is to take a keyword we've already reserved, `this`, and make it also refer to the implicit context object. Reviewed By: yoney Differential Revision: D68005178 fbshipit-source-id: d34cf65e350ca70ae6dc061bda7c033bc041d78b
- Loading branch information
1 parent
838a170
commit f16fdb5
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters