Map
Index
Random
Help
Topics
th

Topic: spaces in text

topics > computer science > programming > Group: programming notation



Topic:
continuation lines
Topic:
token

Summary

Spacing deliminates tokens and improves readability. Usually spacing is only critical between alphanumerics, but in SNOBOL spacing indicates concatenation. Spacing can be used in long numbers to improve readability. (cbb 5/80)
Subtopic: allow blanks in identifiers up

Quote: syntactic metalanguage includes an explicit concatenate operator so that identifiers can include blanks [»scowRS3_1982]

Subtopic: allow blanks in numbers up

QuoteRef: scowRS5_1973 ;;9 using spaces (non-printing character) between number digits makes easier to read e.g., 3.1458 26535 89793

Subtopic: visible space up

Quote: word processors often represent spaces by a small dot; simplifies counting and aligning text [»byte4_1982]

Subtopic: space-driven syntax up

QuoteRef: hallJC5_1974 ;;37 a(3) = "xyz" in SNOBOL is setting an array element while a (3) ="xyz" means "in A look for the third element and replace it by the string "xyz"

Subtopic: problems with tab char up

Quote: the tab character is too device-dependent; use a '4-spaces' character for program layout [»stoyJE3_1972]

Subtopic: avoid spaces up

Quote: avoid unnecessary spaces
[»cwalK_2006]

Related Topics up

Topic: continuation lines (3 items)
Topic: token
(8 items)

Updated barberCB 2/05
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.