Skip to content

Changes from stanc2

Matthijs Vákár edited this page Jan 24, 2019 · 40 revisions

In the process of implementing stanc3, several bugs were found in stanc2 and were fixed in stanc3. We record these here. (A general theme is that error messages have changed a lot and should have improved.)

Stanc gives run-time errors when using function names (e.g. add) corresponding to operators (e.g. +), for certain signatures

(This could either be a Stan Math error or a Stanc error.)

see also this issue

Rstanarm has been patched (in test models) to not exploit shadowing/keyword overloading/operator precedence/semi-colon bugs in stanc2 anymore

By adding underscores to some variable names and adding extra parentheses to make precedence as intended and adding semi-colons where they should be.