POV-Ray : Newsgroups : povray.off-topic : Why is Haskell interesting? : Re: Why is Haskell interesting? Server Time
4 Sep 2024 09:21:31 EDT (-0400)
  Re: Why is Haskell interesting?  
From: Warp
Date: 26 Feb 2010 17:19:45
Message: <4b884901@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> Warp wrote:

> >   Thus you will be able to write things like:
> > 
> >     for(auto iter = v.begin(); iter != v.end(); ++iter) ...
> > 
> >   The compiler can see what is the return type of v.begin(), so there's no
> > need for the programmer to know it. Hence he can just specify 'auto' as the
> > variable type.

> That's a nice touch. Presumably this also means that if the type of "v" 
> changes, you don't have to manually change the type of "iter" to match 
> any more...?

  Right.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.