-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nominal classes and methods #701
Closed
Closed
Conversation
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
Proposal: use `and`, `or`, and `not` keywords in place of `&&`, `||`, `!`. Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
bazelbuild/bazel#11628 is in Release 4.1 - May 2021 #13099 Pin vs rm for build repeatability.
I think the MS C++ extension is what was causing vscode to hang for me. I've been trying clangd and it seems to work better. yash is syntax highlighting for ypp/lpp. The builtin markdown support's gotten better, so I'm removing the non-standard recommendation.
Adds FATAL for things that are most likely programming errors in executable_semantics.
- `PATH` is a caching issue, as commented. - `exec.map` is a correctness issue, the reference to `test` was incorrect on threading so it wasn't updating all tests. Co-authored-by: Geoff Romer <gromer@google.com>
Oversight from #704, I'd had this change in the client but missed it because I ran git add in the wrong spot.
This is finishing #678
Co-authored-by: Geoff Romer <gromer@google.com>
…ork (#561) This proposal defines the very basics of `class` types, primarily focused on: - use cases including: data classes, encapsulated types, inheritance with and without `virtual`, interfaces as base classes, and mixins for code reuse; - anonymous data types for called _structural data classes_ or _struct types_. Struct literals are used to initialize class values and ad-hoc parameter and return types with named components; and - future work, including the provisional syntax already in use for features that have not been decided. The intent is to both make some small incremental progress and get agreement on direction. As such it doesn't include things like nominal types, methods, access control, inheritance, etc. It proposes this struct type and literal syntax: ``` var p: {.x: Int, .y: Int} = {.x = 0, .y = 1}; ``` Note that it uses commas (`,`) between fields instead of semicolons (`;`), and no introducer for types or literal values. Incorporates decisions from #665 , #653 , #651 Co-authored-by: Geoff Romer <gromer@google.com> Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cla: yes
PR meets CLA requirements according to bot.
proposal deferred
Decision made, proposal deferred
proposal
A proposal
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TODO: add summary and links here