LLM-friendlier syntax for `SKIP INSERT`
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.2k
- Forks
- 106
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 1
Description
When I attempted to have an LLM agent write some multi-line code with SKIP INSERT, it simply refused to believe that it should write the code like this:
// SKIP INSERT:
// var count by remember {
// mutableStateOf(100)
// }
It would repeatedly try to convert the code to this:
// SKIP INSERT:
var count by remember {
mutableStateOf(100)
}
That is, the LLM assumed that the code was commented out.
I think it would be better to offer another syntax for embedding multi-line Kotlin in Swift. Perhaps something like:
// SKIP INSERT:
let _ = #```
var count by remember {
mutableStateOf(100)
}
```#
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the existing SKIP INSERT syntax and the proposed Swift example. Determine how a multi-line embedded Kotlin form should be represented without comment ambiguity; done when the syntax is specified and its behavior is verified for the shown example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, swift
- Domain
- mobile, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100