[erlang-questions] A small question about macros
Thu May 16 09:41:05 CEST 2013
If by commands you mean function names, you can have spaces in functions
names. In erlang a function name is just an atom. If you want spaces
in an atom you enclose it in single quotes:
MyAtom = 'this atom is fine'.
'do this'() ->
1> c('te st').
2> 'te st':'do this'().
On 16/05/2013 05:04, Martin Hedberg wrote:
> Hi there
> Have begun to take my first "baby steps" with Erlang (holding on to
> books and tutorials).
> I read about how to make macros in the language. However I wonder how I
> do if I want
> to have blank spaces in my commands? So I just can write, for example:
> "repeat 5 times".
> Hope you don't see me as a heretic if I want to HyperTalk-ificat Erlang
> a little bit. :-)
> I am very grateful for any help.
> Best regards
> erlang-questions mailing list
Ivan A. Uemlianin PhD
Speech Technology Research and Development
More information about the erlang-questions