Path: news.cs.au.dk!not-for-mail From: "Kasper Østerbye" Newsgroups: comp.lang.beta Subject: One letter names - oh no. Date: Fri, 17 Mar 2000 09:24:10 +0100 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 31 Message-ID: <8asq3a$cje7t$1@xinwen.cs.au.dk> NNTP-Posting-Host: xmas.cs.au.dk X-Trace: xinwen.cs.au.dk 953281450 13220093 255.255.255.255 (17 Mar 2000 08:24:10 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 17 Mar 2000 08:24:10 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: news.cs.au.dk comp.lang.beta:12267 A few places in the libraries one letter names are used to make things brief. putFormat from formatio is a good example, where a large number if one letter names are used. Normally this is not a problem, though I occasionally run into the problem of having a variable named e of type integer, and I will do something like 'This is the current value: %i of the attribute: %s' -> putFormat(# e->i; attr->s #) Which gives me the cryptic message that I cannot assign my e to i. Lesson: I no longer uses one letter names. However, I was scanning a dictionary where the elements and keys were both text dic.scanAssociations(# do 'Key: %s is mapped to: %s'-> putFormat(# do k->s; e->s#) #) Guess what :-) Lesson: Someone else should reconsidder the usage of one letter names. -- Kasper