Skip to content

add auto function kind for dynamic return value mechanisms#64

Merged
rochdev merged 1 commit intomainfrom
function-kind-auto
Apr 21, 2026
Merged

add auto function kind for dynamic return value mechanisms#64
rochdev merged 1 commit intomainfrom
function-kind-auto

Conversation

@rochdev
Copy link
Copy Markdown
Contributor

@rochdev rochdev commented Apr 21, 2026

Not all functions have a fixed return value mechanism. Some functions can take a callback or return a promise, or return a promise or sync, etc. In static cases it's better to be explicit for more optimal code, but in cases where multiple mechanisms are supported it makes sense to let the code detect it at runtime.

@rochdev rochdev marked this pull request as ready for review April 21, 2026 00:05
@rochdev rochdev requested a review from Qard April 21, 2026 00:05
@rochdev rochdev merged commit 0a67e16 into main Apr 21, 2026
6 checks passed
@Qard Qard deleted the function-kind-auto branch April 21, 2026 22:19
@bizob2828 bizob2828 mentioned this pull request Apr 29, 2026
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.

3 participants