package ppx_poly_record
ppx for polymorphic records
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_poly_record-1.2.2.tar.gz
sha256=c4e55b13ecc51ce6e0f3126804012c723a5ee7e7479c389f5e6af5e1f5a7f041
md5=8122c8398d94b4e72e5fb99f7b9a97c8
Description
Polymorphic record in OCaml
This ppx adds an extension point [%poly_record <exp>]
for polymorphic record.
In side [%poly_record <exp>]
, the record syntax { l = e; .. }
,
{ e with l = e'; .. }
, r.l
and r.l <- e
become for polymorphic records
whose type is _ Ppx_poly_record.Poly_record.t
. The field information is
encoded into OCaml's object type. For example:
# [%poly_record { x = 1; y = 1.0 }];;
- : < x : int; y : float > Ppx_poly_record.Poly_record.t = <abstr>
Implementation of _ PPx_poly_record.Poly_record.t
is not by OCaml objects:
it has no method table inside therefore safely serializable between different
programs if its fields have no functional value.
Published: 21 Sep 2017
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page