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

It's impossible to choose a favourite, but here's a beautiful snippet, courtesy of Joe Armstrong [0]

  universal_server() ->
      receive
         {become, F} ->
             F()
      end.
[0] https://joearms.github.io/published/2013-11-21-My-favorite-e...


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

Search: