crazy programming language thoughts

Paul D. Fernhout pdfernhout at kurtz-fernhout.com
Sat Aug 23 22:33:13 EDT 2003


Roberto Amorim wrote:
>>The Python code:
>>
>>   x = sin(10) + 50 * 20 * self.myfunctionXY(cos(30), 40)
>>
>>would be in Smalltalk something like:
>>
>>   x := 10 sin + (50 * 20 * self myfunctionX: 30 cos y: 40).
> 
> 
> In fact, that would be
> 
> x := 10 sin + (50 * 20 * (self myfunctionX: 30 cos y: 40)).
> 
> unless you want to call myfunctionX:y: over the result of (50*20*self). :-)

My bad. Thanks for pointing this out. It somehow did feel wrong. Guess 
I've been doing too much Python these days. ;-)

--Paul Fernhout



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 100,000 Newsgroups - 19 Different Servers! =-----




More information about the Python-list mailing list