LambdaRepresentation
scalus.sir.lowering.LambdaRepresentation
case class LambdaRepresentation(inRepr: LoweredValueRepresentation, outRepr: LoweredValueRepresentation) extends LoweredValueRepresentation
Representation for lambda function. By default, lanbda-s accept default reperesentation for input and output types. But when we pass functions to type-parametrized functions, then calling party does not know about real parameter types and can't use default representation, so pass parameters as packed data.
So, we translate higher-order functions to packed data representation when pass as arguments to type-parametrized functions.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article