mateusfccp / mateusfccp/pinto

Type identifiers are not valid in structs

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue
Dominant language
Dart
Stars
13
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Currently, using a type identifier as a parameter in a function, for some reason, breaks the code.

```
// This works
let foo (num) = $0

// This does not
let bar (⊤) = $0

// Nor this
let main (:arguments [String]) = print (foo 10)
```

We should fix the struct so that type identifiers are acceptable.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the three examples in the issue and trace how struct parameters and type identifiers are parsed or represented. The issue does not name source files or tests; done means type identifiers such as ⊤ and :arguments [String] are accepted without breaking the shown programs.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.