You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be tricky/breaking to add support for a bool/boolean data type? All of the conditional/comparison operators require a boolean value, so users currently have to re-evaluate the condition at each call or rely on the implicit conversion from an int type.
It could make for cleaner syntax to be able to do something like:
data {
real y_mean;
bool use_log;
}
parameters {
real y;
}
model {
if (use_log) {
y ~lognormal(y_mean, 1);
} else {
y ~normal(y_mean, 1);
}
}
The text was updated successfully, but these errors were encountered:
Would it be tricky/breaking to add support for a
bool
/boolean
data type? All of the conditional/comparison operators require a boolean value, so users currently have to re-evaluate the condition at each call or rely on the implicit conversion from anint
type.It could make for cleaner syntax to be able to do something like:
The text was updated successfully, but these errors were encountered: