Repository navigation
Make product bijector building blocks public - #32
Conversation
Use Compat to declare the existing qualified APIs public while retaining Julia 1.10 support. Restore the documented tuple-index behavior and prepare version 0.1.4.
Require Plaice 0.1.4 once JuliaBayes/Plaice.jl#32 merges and the release is registered. The IID adapter can then rely on the documented product and optic APIs.
| @@ -1,5 +1,6 @@ | |||
| module Plaice | |||
|
|
|||
| using Compat: @compat | |||
There was a problem hiding this comment.
I like this macro more than adding a new dep: https://github.com/JuliaBayes/FlexiChains.jl/blob/d2843a6667ec23f09e0e4faef7296d6f77ba0bb1/src/FlexiChains.jl#L10-L26
There was a problem hiding this comment.
(the FlexiChains code contains a link to Discourse that discusses this too)
There was a problem hiding this comment.
I’ve replaced Compat with the FlexiChains @public macro.
| ```@docs | ||
| Plaice.ProductVecTransform | ||
| Plaice.Elementwise | ||
| Plaice.append_index |
There was a problem hiding this comment.
Does append_index really need to be marked as public API? I still don't think it's necessary, it's a 2 liner that can be duplicated in Wren.
If you really want to export it from a lower-level package, I'd shift it to VarNames rather than put it here. It'd be very weird for a package to depend on Plaice if it just wanted this function. (The problem is ofc not visible in Wren because Wren happens to already depend on Plaice anyway - but it's the principle of it)
There was a problem hiding this comment.
Agreed, I’ve kept append_index internal and removed it from the API reference.
Use the FlexiChains public macro to preserve Julia 1.10 support without Compat. Keep append_index internal and remove it from the public API reference.
|
Note - CI failure addressed in #28 |
|
Can't approve as on mobile but feel free to merge & release! |
|
O turns out I can but I need to self request review first lol |
Declare and document
ProductVecTransformandElementwiseas public with Julia 1.10 support. Keepappend_indexinternal and retain its tuple-index fix.Bump to 0.1.4. Required by JuliaBayes/Wren.jl#220.