Skip to content

Conversation

@E-A-Griffin
Copy link
Collaborator

@E-A-Griffin E-A-Griffin commented Nov 26, 2025

Lots of cool finds from this! num is not a no-op in any dialect, but it's close to one in every dialect it's defined in. In bb it will throw for non numeric values, in cljr it never throws but does upcast for int, short, and byte (but interestingly not float). In clj it will box unboxed values which is very difficult to demonstrate, but not impossible, and like bb will throw for non-numeric values!

[org.clojure/clojurescript "1.12.42"]]
:plugins [[com.jakemccrary/lein-test-refresh "0.25.0"]])
:plugins [[com.jakemccrary/lein-test-refresh "0.25.0"]
[lein-clr "0.2.2"]])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added these changes to make cljr development easier for myself

@E-A-Griffin E-A-Griffin changed the title Num take 0 Redo num Nov 26, 2025
@E-A-Griffin E-A-Griffin marked this pull request as ready for review November 26, 2025 18:35
@jeaye jeaye merged commit 605ac50 into jank-lang:main Nov 28, 2025
2 checks passed
@jeaye
Copy link
Member

jeaye commented Nov 28, 2025

Thanks, Emma!

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.

2 participants