Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Conditional : #80

Open
saleynik opened this issue Mar 17, 2022 · 0 comments
Open

Conditional : #80

saleynik opened this issue Mar 17, 2022 · 0 comments

Comments

@saleynik
Copy link

In Elixir the positioning of : has a meaning. If the : is on the left side of a word, that's an atom, and such values shouldn't be broken apart, so:

type: :a | :b,
id: atom(),
other: :c | :def,
value: Quantity.t(),

needs to be aligned like this (preserving the atoms:

type:   :a | :b,
id:     atom(),
other:  :c | :def,
value:  Quantity.t(),

instead of:

type:   :             a | : b,
id:     atom(),
other:  :             c | : def,
value:  Quantity.t(),
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant