[m-dev.] Adding Loops to Mercury
Paul Bone
paul at bone.id.au
Thu Jan 2 16:35:42 AEDT 2014
On Wed, Jan 01, 2014 at 09:41:49PM -0500, John Adams wrote:
> Is there or plan (maybe already done) to add loops to Mercury Language?
>
> Visual Prolog has loops of the form:
>
> foreach I=std::fromTo(1,1000) do
> %...whatever
> end foreach.
I think that such a feature would be considered "not in the spirit of
Mercury" by most developers.
--
Paul Bone
http://www.bone.id.au
More information about the developers
mailing list