|
 |
nemesis wrote:
> Hmm, actually, Common Lisp has named arguments... but I'm more of a
> Scheme guy... :P
How about this:
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. ;-)
Post a reply to this message
|
 |