Skip to content

Do not print adjacent nodes in Thread::LinkedList#inspect#15829

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:feature/thread-linked-list-node-inspect
May 28, 2025
Merged

Do not print adjacent nodes in Thread::LinkedList#inspect#15829
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:feature/thread-linked-list-node-inspect

Conversation

@HertzDevil
Copy link
Contributor

This is to avoid a single puts or p on an element printing the entire linked collection of nodes.

Fiber and Fiber::ExecutionContext are also used as element types of Thread::LinkedList and they already have #to_s and #inspect overridden.

@straight-shoota straight-shoota added this to the 1.17.0 milestone May 26, 2025
@straight-shoota straight-shoota added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label May 28, 2025
@straight-shoota straight-shoota merged commit a45132a into crystal-lang:master May 28, 2025
54 of 65 checks passed
@straight-shoota straight-shoota changed the title Do not print adjacent nodes for Thread::LinkedList element types Do not print adjacent nodes in Thread::LinkedList#inspect May 28, 2025
@HertzDevil HertzDevil deleted the feature/thread-linked-list-node-inspect branch May 28, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:concurrency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants