Skip to content

alib #10: stdlib/alib.affine conformance module #416

@hyperpolymath

Description

@hyperpolymath

Child issue of #413 (aLib umbrella). Item alib #10 in docs/alib-roadmap.adoc.

What

Create stdlib/alib.affine: a module that re-exports the 20 aLib operations under their aLib-canonical names, so that consumers wanting the aLib surface can use stdlib::alib::add (etc.) rather than the AffineScript-idiomatic surface.

This is the Phase-A scaffolding step — it's a re-export module, not a new implementation. Most ops already exist in stdlib/math.affine / stdlib/string.affine / stdlib/collections.affine. The work is alignment + a single import point.

Why

The 20 ops (per aLib v0.1.0 data/aggregate.json)

Category Ops
arithmetic add, subtract, multiply, divide, modulo, negate, absolute, max, min
string concat, length, reverse, substring
collection contains, empty, filter, fold, length, map
comparison (per aggregate.json — verify count)
logical (per aggregate.json — verify count)
conditional if_then_else

Done when

  • stdlib/alib.affine exists, re-exports the 20 ops under their aLib names
  • Each re-export's signature matches the aLib signature_string
  • Module type-checks under affinescript check
  • docs/alib-roadmap.adoc row ci: Bump erlef/setup-beam from 1.17.5 to 1.24.0 #10 status updated /
  • Inventory snapshot in the doc updated to reflect the new file

Out of scope (for this issue)

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions