News for hackers. Stuff that matters.
Re:Show HN: Bolt – A super-fast, statically-typed scripting ... by beariish on Sunday August 10, 2025 @02:59PM (#44857372)
There's nothing stopping a library author from explicitly annotating return types wherever a stable interface is important, the idea is more for smaller functions or callbacks to make use of this. Perhaps I'll make the examples clearer to reflect the intention.
Re:Show HN: Bolt – A super-fast, statically-typed scripting ... by flakes on Sunday August 10, 2025 @10:58PM (#44860424)
Perhaps it makes more sense to say that exported function interfaces be explicit. That forces you to document the api and more carefully consider changes.