[Types-sig] Re: Pascal style declarations

Christian Tismer tismer@appliedbiometrics.com
Wed, 15 Dec 1999 00:30:27 +0100


> I'm still trying to get a _declaration_ into the signature, e.g., using your
> assert:
> 
> def f(x assert int) assert string :
>     a = x
>     #... stuff
>     return str(x) + g(x)
> 
> In other words, "assert" is a synonym for Pascal's ":"!  :-)

Sure, while not mentioning, it was obvious to do this
since I proposed a textual replacement for "as" :-)

assert is also a synonym for VB's "as" but don't tell 'em :-=

-- 
Christian Tismer             :^)   <mailto:tismer@appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101   :    *Starship* http://starship.python.net
10553 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     we're tired of banana software - shipped green, ripens at home