imba / imba/imba

def syntax doesn't work with keywords in objects

Open
#791 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
6.5k
Forks
183
Avg merge
4h 10m
Merged PRs (30d)
3

Description

### Description

```imba
let sorters = {

# works
new: do $1.time

# doesn't work
def new
$1.time

}
```

### Reproduction

_No response_

### System Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the Imba parser or compiler entry point and reproduce the object example, comparing the working `new: do $1.time` form with `def new`. Done means the `def` form works for the `new` object key consistently with the equivalent `do` form.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.