Skip to content

Instantly share code, notes, and snippets.

@alco
Created August 27, 2014 21:54
Show Gist options
  • Save alco/6348d3a5964835316ad5 to your computer and use it in GitHub Desktop.
Save alco/6348d3a5964835316ad5 to your computer and use it in GitHub Desktop.
# Numbers
0b0101011
1234 ; 0x1A ; 0xbeef ; 0763 ; 0o123
3.14 ; 5.0e21 ; 0.5e-12
100_000_000
# Atoms
:this ; :that
:'complex atom'
:... ; :<<>> ; :%{} ; :% ; :{}
:++; :--; :*; :~~~; :::
:% ; :. ; :<-
# Structs
defmodule Second.Module do
s = %Long.Module.Name{name: "Silly"}
%Long.Module.Name{s | height: {192, :cm}}
".. #{%Long.Module.Name{s | height: {192, :cm}}} .."
end
# Lexical scope modifiers
alias Long.Module.Name, as: N0men123_and4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment