Skip to main content

Activity for katafrakt.eurosky.social

Active on:

Loading activity...

Back to the newest activity

PostedBluesky network

TIL (well, YIL, to be precise) that @ in #ElixirLang is just a macro in Kernel module, so you can do this. Makes sense in retrospect, but I never thought about that before.

  • Code snippet:

defmodule Test do
  Kernel.@(foo 42)

  def call do
    IO.puts @foo
  end
end

Test.call()