POV-Ray : Newsgroups : povray.off-topic : Why is Haskell interesting? : Re: Why is Haskell interesting? Server Time
4 Sep 2024 09:15:28 EDT (-0400)
  Re: Why is Haskell interesting?  
From: Orchid XP v8
Date: 26 Feb 2010 16:59:35
Message: <4b884447@news.povray.org>
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...?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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