Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-12-23
22:46 • Closed ticket [1610474fff]: Code format plus 7 other changes artifact: c1487b2b14 user: tallniel
2009-07-29
05:12 • Ticket [1610474fff]: 2 changes artifact: ff5d8782d1 user: dkf
2006-12-06
23:16 • New ticket [1610474fff]. artifact: 00e51b7a61 user: nobody

Code format

Closed / Wont Fix1610474fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 17 years ago
Descriptionplain2006-12-06 23:16:31
set tclfiles [glob *.tcl]
puts "Name - date of last modification"
foreach f $tclfiles {
    puts "$f - [clock format [file mtime $f] -format %x]"
}

I am not sure how many people smoosh their code like that. I know I don't and since it is a tutorial it should be formatted like you would want someone to code.

set tclfiles [glob *.tcl]

puts "Name - date of last modification"

foreach f $tclfiles {
    puts "$f - [clock format [file mtime $f] -format %x]"
}

This is more of a request and not a "bug".
dkf Ticket [1610474fff]: 2 changes [History diff]2009-07-29 05:12:07
tallnielplain2009-12-23 22:46:07
allow_comments - 1

The code seems fine to me, and perfectly readable. The Tcl Style Guide, as far as I am aware, is silent on the question of aesthetically pleasing line spacing, except with respect to comments. Unless there is a clear case for significantly reduced readability, I am loathe to set a precedent of making updates to the tutorial for purely stylistic reasons.
Log in (anonymous is fine) to add a comment.