wishlist: user-declared parameter labels without "given"
wishlist: user-declared parameter labels without "given"
- Subject: wishlist: user-declared parameter labels without "given"
- From: Timothy Bates <email@hidden>
- Date: Sun, 01 Apr 2001 05:19:12 +1000
it would be fantastic to be able to say
getasample taking 3 from list {1,2,3,4} without replacing
instead of
getaSample without Replacement given howmany:3, sourceList:{1, 2, 3, 4})
or the inscrutable
getasample(2,{1,2,3,4},false)
That would mean that our functions could be as readble as scripting
additions (which can define labels for their parameters).
This could be handled using a notation like this
to getasample taking howmany from list sourceList without replacing
userLabels: {taking, from list}
... script lines
end
where the userlabels line allows the compiler to disambiguate the parameter
list.
Dr Timothy Bates <
mailto:email@hidden>
Macquarie Centre for Cognitive Science (MACCS)
Macquarie University
Ph 61 (2) 9850 8623
Fx 61 (2) 9850 6059