Conversation
…n eldritch-core. Updated `ast.rs` to store multiple loop variables `vars` instead of a single `var` in `ExprKind` variants. Updated `parser/expr.rs` to parse multiple loop variables in comprehensions. Updated `interpreter/operations/comprehension.rs` to handle tuple unpacking logic. Added test cases in `tests/comprehensions_unpacking.rs`.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Summary
Previous Results
Insights
Slowest Tests
🎉 No failed tests in this run. | 🍂 No flaky tests in this run. Github Test Reporter by CTRF 💚 |
nullmonk
left a comment
There was a problem hiding this comment.
Tested with this:
s = {1,2,3}
print([y+10 for y in s])
d = {
"x": 1,
"y": 2,
"z": 3,
}
print({k: v for k,v in d.items()})
l = [
("x", 1),
("y", 2),
("z", 3),
]
print({x: y+10 for x,y in l})Everything looks good
Implemented tuple unpacking for comprehensions (dict, list, set) in
eldritch-core.This allows syntax like
{k: v for k, v in items}.Changes involve:
PR created automatically by Jules for task 4124653622789545699 started by @KCarretto