Skip to content

Commit 8d13c30

Browse files
penelopeysmmhauru
andauthored
Add comment to src/sampler.jl
Co-authored-by: Markus Hauru <[email protected]>
1 parent 956ed54 commit 8d13c30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sampler.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ function default_varinfo(rng::Random.AbstractRNG, model::Model, ::AbstractSample
8585
# an empty `typed_varinfo(VarInfo())`) is to avoid issues where pushing to an empty
8686
# typed VarInfo would fail. This can happen if two VarNames have different types
8787
# but share the same symbol (e.g. `x.a` and `x.b`).
88+
# TODO(mhauru) Fix push!! to work with arbitrary lens types, and then remove the arguments
89+
# and return an empty VarInfo instead.
8890
return typed_varinfo(VarInfo(rng, model))
8991
end
9092

0 commit comments

Comments
 (0)