Darren Duncan wrote:

I don't quite follow you. Are you saying your version of sqrt is an implicit declaration; maybe I don't understand how that differs from an explicit definition in this case? In any event, right at this moment I can't think of an answer to your question. Go ahead with what you think works and I'll just speak up later if I have something constructive to offer. -- Darren Duncan

I actually agree that your explicit definition (a simple/efficient implementation in terms of other operators) is better for prelude than my "declarative" form (which isn't really declarative, because Perl6 isn't a declarative language). My only disagreement was with your earlier statement in this thread, where you said that prelude.pm should use a declarative style.

I think we agree that what you really meant was that it should be written in an explicit self-referential style; and that it should avoid "programming" implementations as much as possible (e.g. prefer hyper-ops over explicit loops)

Reply via email to