Re: A style question




"Tim Bradshaw" <tfb+google@xxxxxxxx> writes:

Incidentally, I'm deeply disappointed in the quality of answers in
this thread. In the elder days there would have been at least a few
followups showing how to do this in the proper "FORMAT string
indistinguishable from line noise" way. No true CL programmer ever
uses any other construct when the problem can be solved with a
combination of FORMAT, LOOP & GO (FORMAT being always preferable,
obviously). There may yet be those reading cll who know this, though
I suspect they have all gone into the west now.

(dotimes (i 100)
(format t "~[~[FizzBuzz~:;Fizz~]~:;~[Buzz~:;~D~]~]~%" (mod i 3) (mod i 5) i))

Best I could do on one cup of coffee.

--
RmK
.



Relevant Pages

  • Re: Using the HMS functions in a user RPL program.
    ... to decide when it's proper to use these functions, ... between Polar and Rectangular coordinates; ... The format itself, however, inherently introduces ...
    (comp.sys.hp48)
  • Re: Record Duplication & Formatting Advise Please.....
    ... Instead of just Copy then Paste, you need to copy then Edit>Paste Special> choose Values as this will change the formulae into the absolutes of what the formulae are doing i.e. the Proper names. ... The Properfunction cannot be used in the cell with the entry itself. ... using auto correct but I wondered if this is the correct use of this feature ... I also looked at the "Proper " format, but can't seem to get it to work. ...
    (microsoft.public.excel)
  • Re: Linux vs Solaris?
    ... file of a standard format in which the format is not inherently aligned ... to comply with your system's addressing limitations. ... > When using proper types for your data, ... It seems you consider SIGBUS as a debugging aide. ...
    (comp.unix.programmer)
  • Re: NotInList will not allow me to modify NewData
    ... This may help you to understand how to use the NotInList event: ... > "in the format Last Name, First Name.", vbExclamation Or vbSystemModal, ... > If I don't use the proper format I get the ... > I have tried using acDataErrContinue but I still get the NotInList ...
    (microsoft.public.access.formscoding)
  • Re: Month only field problem
    ... reports are fiscal year, some calendar. ... names alphabetically so assigning a number value should keep it in the proper ... calendar order. ... >>field size is long interger and Format is mmmm. ...
    (microsoft.public.access.tablesdbdesign)