geometric memory growth

David Hopwood david.nospam.hopwood@REDACTED
Mon Nov 28 03:16:05 CET 2005


Tony Rogvall wrote:
> 
>> Your point seems to be that the only bindings that should
>> occur in
>>
>>   SendF = fun(To, Msg) ->
>>              msg(State#state.channel, ChNo, To, Msg)
>>           end
>>
>> would be State and ChNo - but I'm not interested in State.
>> I think it's most intuitive to think of the two
>> constructs above as exactly equivalent.
> 
> I guess the (not so) general question is something like:
> 
> Given a function f and a bound variable B (constant!) . Under what
> circumstances may f(B) be evaluated while defining the
> function bound to F.
> 
> F = fun() ->  f(B) end,
> 
> I would guess that any function f not producing side effects would be 
> safe to evaluate

Any deterministic function not producing side effects or exceptions that
is guaranteed to terminate in a *short* time.

-- 
David Hopwood <david.nospam.hopwood@REDACTED>




More information about the erlang-questions mailing list