Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agreed, but the tutorial is actually quite good and the syntax (mostly) makes sense to me now.

What I don't understand is that writing a stream that unlatches a "variable" (a thing bound to a latch) executes once per time the variable is set, but it's not clear why the same code bound to a constant doesn't loop infinitely.

i.e.

i = [int\] <- 10; \i -> std.out;

executes once because i was set once.

i = [int\] <- 10; i -> std.out;

executes once because...



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: