Skip to content

feat: add Erlang binary and number predicates - #187

Merged
dbrattli merged 1 commit into
mainfrom
feat/erlang-term-predicates
Oct 18, 2026
Merged

dbrattli merged 1 commit into
mainfrom
feat/erlang-term-predicates

Conversation

@dbrattli

Copy link
Copy Markdown
Collaborator

Summary

  • Add generic Erlang.isBinary and Erlang.isNumber bindings that emit the corresponding OTP predicates directly.
  • Cover accepted and rejected Erlang term kinds in the BEAM test suite.

Motivation

Fable.Fish lightshow currently defines local emits for these predicates. Shared bindings let consumers inspect raw terms while preserving OTP semantics: isNumber accepts both integers and floats without converting either.

@dbrattli
dbrattli merged commit 67c2efe into main Oct 18, 2026
9 checks passed
@dbrattli
dbrattli deleted the feat/erlang-term-predicates branch October 18, 2026 20:50
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