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

Optics show improvements #186

Merged
merged 3 commits into from
Dec 24, 2024
Merged

Optics show improvements #186

merged 3 commits into from
Dec 24, 2024

Conversation

aplavin
Copy link
Member

@aplavin aplavin commented Dec 22, 2024

More consistency + cleaner output in some cases.
Details in individual commit messages, they are quite verbose.

For example, show result for @o Tuple(_.a[2]):
before: "Tuple ∘ (@o _.a[2])"
with this PR: "(@o Tuple(_.a[2]))"
Shows unqualified names for both functions (as before) and types. Nice when an optic uses a non-exported type from some module.
show_optic is not a public API, but convenient to use sometimes
before, it appended  " ∘ (@o _)" unnecessarily for objects that don't have explicit show_optic handling
@aplavin aplavin merged commit f0beb7f into JuliaObjects:master Dec 24, 2024
10 of 12 checks passed
@aplavin aplavin deleted the show branch January 7, 2025 22:48
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