JuliaSIMD / JuliaSIMD/Polyester.jl

Destructuring not recognized

Open
#75 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Julia
Stars
285
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Hi,

I've encountered a case where Polyester.jl does not know how to handle the destructuring syntax introduced in Julia 1.7:

```julia
using Polyester

struct A
a
b
end

x = A(1,2)

Threads.@threads for i in 1:2
(; a, b) = x
end

@batch for i in 1:2
(; a, b) = x
end
```

The `@batch` loop returns
```
ERROR: LoadError: "Don't know how to handle:\n \$(Expr(:parameters, :a, :b))"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.