'from' is ideal for iterating over collections return 'from' a function call. And ofcourse we turn function calls that return single values into a collection to do an iteratino of one. However  I thought it might be more declarative to add an = or an 'is' keyword.

$f = $dog.name
or possible
$f is $dog.name
but I think I prefer  the first

Internally this would just use 'from', but it might be more declaratively understandable to allow the above. The other reason is it facilitates prolog style backward chaining, where you can something like this in ar rule:
c_to_f(C,F) :-
   F is C * 9 / 5 + 32.


C is an 'in' variable and F is an 'out' variable.

Further to this I thought it would be good to allow function calls, that are basically converted to evals
log($fact)
instead of
eval( log($fact) )

Mark

Reply via email to