See
|
# TODO(mhauru) The above might run into trouble if some variables are linked and others |
for description of the problem and a possible solution.
This relies on DynamicPPL gaining a method for link!! and invlink!! that takes a VarName rather than a sampler or a space.
The bug that this causes is only hit when doing things that the old Gibbs sampler never allowed in the first place, so I don't think implementing this should hold back merging #2328.