effekt-lang / effekt-lang/effekt

Mark tuples and lambda case in annotations for better error messages

Open
#1,232 1 comment 0 reactions 0 assignees View on GitHub
quality-of-life refactoring
Dominant language
Scala
Stars
469
Forks
41
Avg merge
1d 16h
Merged PRs (30d)
23

Description

Follow-up from #1225

The PR ^ adds detection of tuples and lambda case for better errors in a very ad-hoc way, we should probably replace that with a more principled approach.
One possibility is `findPrelude` for the definition of the tuple _type_, but it doesn't scale well for the other issues.

Another way of resolving it is to have some `Desugared` annotation which can tell us stuff like "oh, this `__arg` is just a desugared lambda-case!"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with follow-up issue #1225 and the existing ad-hoc detection for tuples and lambda-case described there. Compare the `findPrelude` approach with a principled `Desugared` annotation, and define completion as consistently identifying desugared constructs so error messages can distinguish tuple types and lambda-case code.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
compilers
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.