Skip to content
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

Issue #598, Part 1. #599

Closed
wants to merge 1 commit into from
Closed

Issue #598, Part 1. #599

wants to merge 1 commit into from

Conversation

HoshinoTented
Copy link
Contributor

@HoshinoTented HoshinoTented commented Oct 23, 2022

This PR should:

  • Supports any licit ParamShape (whatever explicit or implicit)
  • Desugar [ {O} ] correctly (or reject it).
  • Handle cons with implicit arguments correctly.

Questions

  • Should we support [ {expr/pattern} ] ?
    • We do not support
      • When do we reject this expression/pattern? Parsing (in .bnf)? Producing (in AyaGKProducer)?
    • We do support
      • How to handle [ (S n) as m ] where | cons {A} (List A)
      • Similarly, how to handle [ {S n} as m ] where | cons (A) (List A)

@codecov
Copy link

codecov bot commented Oct 23, 2022

Codecov Report

Merging #599 (c484f79) into main (5ecd681) will decrease coverage by 0.01%.
The diff coverage is 76.47%.

@@             Coverage Diff              @@
##               main     #599      +/-   ##
============================================
- Coverage     80.54%   80.53%   -0.02%     
- Complexity     2750     2752       +2     
============================================
  Files           224      224              
  Lines          8637     8645       +8     
  Branches       1071     1073       +2     
============================================
+ Hits           6957     6962       +5     
- Misses         1097     1098       +1     
- Partials        583      585       +2     
Impacted Files Coverage Δ
.../src/main/java/org/aya/core/repr/ShapeMatcher.java 69.35% <50.00%> (-2.32%) ⬇️
...ase/src/main/java/org/aya/core/repr/CodeShape.java 54.16% <80.00%> (+9.72%) ⬆️
base/src/main/java/org/aya/core/repr/AyaShape.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@HoshinoTented HoshinoTented marked this pull request as draft October 23, 2022 16:59
@ice1000
Copy link
Member

ice1000 commented Oct 23, 2022

Desugar [ {O} ] correctly (or reject it).

I propose to reject it

@@ -75,18 +75,29 @@ record Any() implements PatShape {}
* @author kiva
*/
sealed interface ParamShape {
// TODO[hoshino]: a better name is requested!
enum Explicit {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Licit

Comment on lines +81 to +82
Explicit,
Implicit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exp, Imp

@ice1000
Copy link
Member

ice1000 commented Oct 27, 2022

Alternative: Explicit.Yes, Explicit.No, Explicit.Unsure

@HoshinoTented
Copy link
Contributor Author

The base made a big change, close.

@ice1000
Copy link
Member

ice1000 commented Nov 6, 2022

RIP

@ice1000 ice1000 added this to the v0.23 milestone Nov 6, 2022
bors bot added a commit that referenced this pull request Nov 6, 2022
634: Allowing Implicit Argument in List Ctor r=ice1000 a=HoshinoTented

A re-development of #599 on the new base.

Co-authored-by: HoshinoTented <hoshinotented@qq.com>
bors bot added a commit that referenced this pull request Nov 6, 2022
634: Allowing Implicit Argument in List Ctor r=imkiva a=HoshinoTented

A re-development of #599 on the new base.

Co-authored-by: HoshinoTented <hoshinotented@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants