logoalt Hacker News

travisgriggslast Sunday at 4:47 PM1 replyview on HN

It is a callback of sorts. But most languages do callbacks with some sort of anonymous closure mechanism (or more primitively, pass function pointer/identifiers). What makes BEAM interesting is its prevalence of generalizing callbacks themselves as more events (messages).


Replies

koakuma-chanlast Sunday at 6:11 PM

You can also define a callback function in, e.g., JavaScript, and pass its name instead of an anonymous closure. Does "BEAM" do anything that JavaScript can't or doesn't?

show 1 reply