• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
wishlist: user-declared parameter labels without "given"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Database question
  • Next by Date: Re: Database question
  • Previous by thread: Re: Database question
  • Next by thread: Re: wishlist: user-declared parameter labels without "given"
  • Index(es):
    • Date
    • Thread