Mar 6, 2008
Axet_small Alexey Kuzne... 3 posts

Topic: Programming Erlang / Side effect

I already finish 3 chapters, but still don’t understand what mean that expression? I know only side effect in C++ or other imperative languages.

 
Feb 26, 2008
Axet_small Alexey Kuzne... 3 posts

Topic: Programming Erlang / 2.6 One time assigments

I agree. And i see that style is a good style. But really i try to imagine situation that can totally brake that logic – loops. If you try use loops in any languages you must reuse loop iterator all time. And that is a question – how to solve that. There Joe explain new style, but don’t explain main differents between languages.

 
Feb 25, 2008
Axet_small Alexey Kuzne... 3 posts

Topic: Programming Erlang / 2.6 One time assigments

At end of 2.6 you can read bullet:

At this point you might be wondering how it’s possible to program with-
> out variables. How can you express something like X = X + 1 in Erlang?
> The answer is easy. Invent a new variable whose name hasn’t been used
> before (say X1), and write X1 = X + 1.

But my question is how it work for in for/next cycles. And IMHO right explanation is: recursion examples.

3 posts