develooper Front page | perl.perl6.internals | Postings from June 2001

Re: Should the op dispatch loop decode?

Thread Previous | Thread Next
From:
Bart Lateur
Date:
June 13, 2001 04:12
Subject:
Re: Should the op dispatch loop decode?
Message ID:
qaieit4cci9ljo1vq8i5lndbovtbc59mop@4ax.com
On Tue, 12 Jun 2001 18:12:35 -0400, Dan Sugalski wrote:

>'Kay, here's a question to ponder. Should the op dispatch loop handle 
>argument decoding, or should that be left to the opcode functions?

Are you talking about lazy vs. normal evaluation?

Lisp knows basically two modes, normal evaluation, where parameters are
interpreted before the function is called, and lazy evaluation, where
each parameter is only interpreted as it is needed. The latter is useful
in Perl for shortcircuiting operators like && || or and but also for ?:

I'd say that for the general case, you need these two modi. How you
implement them, is for you to choose.

-- 
	Bart.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About