Skip to content

ref: use phel 0.54 core helpers and add a mutation gate for core - #41

Merged
Chemaclass merged 1 commit into
mainfrom
ref-use-phel-054-features
Oct 31, 2026
Merged

Chemaclass merged 1 commit into
mainfrom
ref-use-phel-054-features

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

📚 Description

Use what phel 0.54 (the latest stable release) already ships instead of hand-rolled equivalents, and gate the pure core with mutation testing.

🔖 Changes

  • int? replaces php/is_int, and phel.string/join replaces implode over a converted array.
  • Keep parse-int instead of switching to core parse-long: parse-long clamps 9223372036854775808 to the maximum integer, which brings back the silent wrong answer fixed earlier. A one-line comment says so.
  • New composer mutate (also make mutate) runs phel mutate src/core with a 90% floor. It runs inside composer ci and as a CI step. The core scores 100% today (12 of 12 mutants killed).
  • README lists the new task.

Not adopted

1.0.0-rc2 is a pre-release, so the skeleton stays on ^0.54.

Verification

  • composer ci passes: format, lint, 36 tests, mutation 100%, build, export.
  • add 1 abc x prints Not an integer: abc, x and exits 1, as before.

@Chemaclass Chemaclass added the enhancement New feature or request label Oct 31, 2026
@Chemaclass Chemaclass self-assigned this Oct 31, 2026
@Chemaclass
Chemaclass merged commit b500756 into main Oct 31, 2026
1 check passed
@Chemaclass
Chemaclass deleted the ref-use-phel-054-features branch October 31, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant