[erlang-questions] Can I do var-assignment in a function?
Wed Jul 23 13:08:59 CEST 2008
A = string:tokens(Str," ").
I could of course do this:
But lets say I want a bigger function that slo includes some deeper function calls, lets say 4-5
That's the main thing I dislike about functional programming, it is very expressive but sometimes it is hard afterwards to follow what a function does and it is hard hwen you have to read what is happening from right to the left.
It is easier to reason about when I can split into several calls.
I guess it is doable but I can't figure out the syntax.
Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling.
Sök och jämför priser hos Kelkoo.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions