|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |