Skip to content

STAN-0302 is triggered on long contexts #505

@cdsmith

Description

@cdsmith

The following code:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions