Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abbreviated repeated names in a Clojure function name #126

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

hlship
Copy link
Collaborator

@hlship hlship commented Aug 21, 2024

After demangling strips off the numeric suffix from a Clojure function name, in cases where you have deeply nested anonymous functions (say, because you are using nubank/state-flow) you can end up with a long name of repeated /fn/fn/fn.. values; this change reduces those repeats down to /fn{x14} (the actual count, 14).

Using curly braces looks about right, and won't collide with just about any Clojure or Java identifier.

After demangling strips off the numeric suffix from a Clojure function name,
in cases where you have deeply nested anonymous functions (say, because you are
using nubank/state-flow) you can with a long name of repeated `/fn/fn/fn..` values; this change reduces those repeats down to `/fn{x14}` (the actual
count).
@hlship hlship self-assigned this Aug 21, 2024
@hlship hlship added this to the 3.1.0 milestone Aug 21, 2024
@hlship hlship merged commit 99d118b into main Aug 21, 2024
1 check passed
@hlship hlship deleted the hls/20240821-deeply-nested-fns branch August 21, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant