Better HN
topnewbestaskshowjobs
Log inSign up

scalaisneat

8 karma · joined Apr 4, 2017 (9y ago) · 5 submissions

Submissions

comment 1y ago · link · parent

ai slop

comment 1y ago · link · parent

because it is declared as an effect - and implements a handle.

Think of it more like an interface. It turns out that many common patterns - async, IO, yielding can all be expressed with a handle - and the effect can be represented in the signature.

This allows the code to have which effect its ran in, at runtime - other commenters pointed out its very similar to dependency injection.

comment 1y ago · link · parent

I agree with this sentiment but view it inherently as a feature of languages like f# and Haskell - That small ripple at compile times makes trusting refractors easier. After having experienced this, languages like python become really challenging to grok without heavy unit testing.

comment 5y ago · link · parent

Has anyone seen a way to call this from Rust?

comment 9y ago · link · parent

Neat-- Just applied to create content.