> Isn't this almost a case for revamping the prototyping system? You can > define your API in terms the current perl variables (nothing in the above > suggests that integers versus floats is the main problem) and have a > prototype system that actually allows you to specify that "argument 3 > should be an array with 5 entries", "argument 2 must be a hash reference" > (allowing you to pass in a scalar containing a hash ref as well as a > hash). Would that cover what you want? It would be a start. It certainly would address my example, especially if you could specify that the 5th argument be a referenced blessed into the Foo::Bar class. However, if you're going to go that far, you might as well allow for real typed vars. ++t
- type-checking [Was: What is Perl?] Michael Fowler
- Re: type-checking [Was: What is Perl?] Alan Burlison
- Re: type-checking [Was: What is Perl?] Nick Ing-Simmons
- Re: type-checking [Was: What is Perl?] Alan Burlison
- Re: type-checking [Was: What is Perl?] Tim Bunce
- Re: type-checking [Was: What is Perl?] Dan Sugalski
- Inner loop (was Re: type-checking [Was: ... Chaim Frenkel
- Re: type-checking [Was: What is Perl?] Tim Bunce
- RE: type-checking [Was: What is Perl?] Tony Payne
- RE: type-checking [Was: What is Perl?] Tim Jenness
- RE: type-checking [Was: What is Perl?] Tony Payne
- RE: type-checking [Was: What is Per... Tim Jenness
- RE: type-checking [Was: What is Perl?] Peter Scott
- Re: type-checking [Was: What is Perl?] Chaim Frenkel
- Re: type-checking [Was: What is Per... Peter Scott
- Re: type-checking [Was: What is Per... Dan Sugalski
- Re: type-checking [Was: What is Per... Chaim Frenkel
- Re: type-checking [Was: What is Perl?] Damian Conway
- Re: type-checking [Was: What is Per... Dan Sugalski
- Re: type-checking [Was: What is Per... Matthew Cline
- Re: type-checking [Was: What is Per... Piers Cawley