On 06/07/2013, at 1:11 AM, srean wrote:
> 
> Now that the default is (going to be a) var,

Is done ..

> can one write
> 
>  p (val expr);
> 
> if he/she is confident of the semantics ?

Nope. The val to var conversion is implement with an assignment.

        (val expr)

is an oxymoron. All expressions are values.

One reason the default was val, because you could
force it to var if required. You cannot force lazy evaluation:
to do that you have to use a closure value, which forces it
but the function has a different type then, and the delayed evaluation
has to be done explicitly.

So now if you want lazy evaluation you have to write a function
that takes a closure argument and calls it when you want.


--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to