タグ

ブックマーク / elixir-lang.org (1)

  • The Elixir programming language

    All Elixir code runs inside lightweight threads of execution (called processes) that are isolated and exchange information via messages: current_process = self() # Spawn an Elixir process (not an operating system one!) spawn_link(fn -> send(current_process, {:msg, "hello world"}) end) # Block until the message is received receive do {:msg, contents} -> IO.puts(contents) end Due to their lightweigh

    The Elixir programming language
    Hash
    Hash 2012/11/14
    あれ, エリクサー本家ブクマしてなかったっけ
  • 1