When Spaces Matter in Elixir

Spaces: the final frontier in keeping your code from compiling
%{touch: "The Sky"}
|> Map.get(:touch)
iex> %{touch: "The Sky"}
%{touch: "The Sky"}
iex> |> Map.get(:touch)
** (SyntaxError) iex:3:1: syntax error before: '|>'
iex> (
%{touch: "The Sky"}
|> Map.get(:touch)
)
"The Sky"
<html>
<head>
<?php include('header.php'); ?>
</head>
...
</html>
<title>My Title</title>
<meta name="description" content="Madness">
<html>
<head>
<title>My Title</title>
<meta name="description" content="Madness">
</head>
...
</html>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store