POV-Ray : Newsgroups : povray.off-topic : GIMP hotkeys/ scripts/ user-defined functions? : Re: Named arguments Server Time
7 Sep 2024 01:22:28 EDT (-0400)
  Re: Named arguments  
From: nemesis
Date: 10 Dec 2008 11:52:27
Message: <493ff3cb@news.povray.org>
Invisible escreveu:
>   data Settings = Settings
>     {
>       time_step :: Time,
>       min_subdivide :: Time,
>       tolerance :: Space,
>       recursive :: Bool
>     }
> 
>   foo $ Settings {recursive = True, tolerance = 0.01, min_subdivide = 
> 0.001, time_step = 2.5}
> 
> Heh, that's the trouble with named arguments - it gets so verbose. ;-)

Hah!  And now you got brackets and colons (and type declarations)!! 
mwahahahaaha


Post a reply to this message

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