Skip to content

Commit

Permalink
update a-week-with-elixir/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Nov 25, 2016
1 parent 1b18c34 commit ef273b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion a-week-with-elixir/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ B = s"Hello #{A}".
%C{.....}
```

`C`是单个字符(【译注】:`Erlang`中大写开头的是变量不是常量,`C`是单个字符,表示可以是`a``b``$`等),后面跟着一对`{}``[]`
`C`是单个字符,后面跟着一对`{}``[]`
【译注】:`Erlang`语法大写开头的名字表示是个变量不是常量,所以`Erlang`的同学会很自然地用大写开头的名字来表示一个占位符,即上面的示例的`C`表示可以是`a``b``$`等这样变化的单个字符。

`sigil`很棒。`Erlang`本可以在15年前就有这个功能,而现在也可以引入,并且不会有向后兼容的问题。

Expand Down

0 comments on commit ef273b0

Please sign in to comment.