Skip to content

Add Crystal::PointerLinkedList#first?#16400

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:feature/add-crystal-pointer-linked-list-first
Nov 24, 2025
Merged

Add Crystal::PointerLinkedList#first?#16400
straight-shoota merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:feature/add-crystal-pointer-linked-list-first

Conversation

@ysbaddaden
Copy link
Collaborator

This is needed to import Sync::ConditionVariable from the sync shard: we need to access the first waiter. We could access .@head but a properly tested method is nicer.

NOTE: the nilable methods of Crystal::PointerLinkedList such as #first?, #pop? and #shift? should return a mere NULL pointer instead of a nilable Pointer(T) | Nil union.

@straight-shoota straight-shoota added this to the 1.19.0 milestone Nov 21, 2025
@straight-shoota straight-shoota merged commit b8def0b into crystal-lang:master Nov 24, 2025
42 checks passed
@ysbaddaden ysbaddaden deleted the feature/add-crystal-pointer-linked-list-first branch November 24, 2025 09:31
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.

2 participants