JuliaLang / Compat.jl

Compatibility across Julia versions
Other
144 stars 117 forks source link

Add support for property destructuring in `@compat` macro #768

Closed kleinschmidt closed 2 years ago

kleinschmidt commented 2 years ago

This currently supports only the basic (; a, b) = something syntax, and does not handle the parallel function argument syntax.

I didn't bump the package version because I'm not sure what the release policy is but I'm happy to do that too! I bumped the minor version since this is a new feature and the last merged commit was a release so it feels pretty safe.

codecov[bot] commented 2 years ago

Codecov Report

Merging #768 (0efad2c) into master (fa274f7) will increase coverage by 0.13%. The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master     #768      +/-   ##
==========================================
+ Coverage   79.00%   79.14%   +0.13%     
==========================================
  Files           4        4              
  Lines         662      676      +14     
==========================================
+ Hits          523      535      +12     
- Misses        139      141       +2     
Impacted Files Coverage Δ
src/compatmacro.jl 88.23% <85.71%> (-0.66%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fa274f7...0efad2c. Read the comment docs.