Comment

Comment by J0-nas

Totally of topic but could someone explain Elixirs syntax to me?

In the following code (from the linked site): What is embeds_many? Are :string and :map type information or Atoms? What happens to :changes, Change, primary_key? Does the code between do and end just call the field function twice?

embeds_many :changes, Change, primary_key: false do

    field :field, :string

    field :value, :map
end
parent J0-nas 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton