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
type Differentiable f =
( Functor f,
GenericK f,
GDifferentiable (RepK f),
GBifunctor (GDiff (RepK f))
)
triggers this message from stan in HLS:
✲ Name: Big tuples
✲ Description: Using tuples of big size (>= 4) can decrease code readability
✲ Severity: Style
✲ Category: #AntiPattern #Syntax
Possible solutions:
- Consider defining and using a custom data type to improve code comprehension
stan(STAN-0302)
However, this is not a tuple. It is a context, and there is no way to define a custom data type to improve code comprehension.
The text was updated successfully, but these errors were encountered:
I agree this is a bug. Unfortunately stan does not have an active enough maintainership to tackle anything beyond keeping the project building. If you (or anyone) can work out how to fix this (and add a test) then I'll happily incorporate it.
I suppose the correct thing to do is to disable the check for big tuples if we're to the left of a =>.
The following code:
triggers this message from stan in HLS:
However, this is not a tuple. It is a context, and there is no way to define a custom data type to improve code comprehension.
The text was updated successfully, but these errors were encountered: