Skip to content

Extend macros#105

Merged
pbower merged 2 commits into
mainfrom
extend_macros
May 26, 2026
Merged

Extend macros#105
pbower merged 2 commits into
mainfrom
extend_macros

Conversation

@pbower
Copy link
Copy Markdown
Owner

@pbower pbower commented May 26, 2026

Adds ergonomic macros for:

  1. Extend Arrays and FieldArray macros to include null mask support.
  2. Add Table construction support viatbl! macro.
  3. Add SuperTable construction support via st! macro.
  4. Add Matrix construction support via mat! macro.

pbower added 2 commits May 26, 2026 15:47
Two forms, both routed through `Matrix::try_from_cols(...).unwrap()`:
- Literal columns: `mat![[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]`
- Slice-of-slices: `mat!(cols)` for `cols: &[&[f64]]`

Length mismatch surfaces the underlying `MinarrowError::ColumnLengthMismatch`.
Unit tests cover both call forms and the panic path.
2. Add `tbl!` macro
3. Add `st!` macro for ergonomic SuperTable construction
@pbower pbower merged commit df353b7 into main May 26, 2026
14 of 16 checks passed
pbower added a commit that referenced this pull request May 26, 2026
1. Extend arr_*!/fa_*! macros with slice + null mask arms
2. Add `tbl!` macro
3. Add `st!` macro for ergonomic SuperTable construction
4. Add `mat!` macro for ergonomic Matrix construction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant