gcc
1
Name:
Anonymous
2009-05-29 12:50
What characters can I use in identifiers, am I limited to [A-Za-z0-9_] ?
2
Name:
Anonymous
2009-05-29 12:54
Only the first 8 characters count, and identifiers cannot start with a digit.
3
Name:
Anonymous
2009-05-29 12:57
>>2
More like 6.
How would I go about using non-ASCII characters in identifiers?
4
Name:
Anonymous
2009-05-29 13:16
Use only three lowercase letters from a to r. That's the safest way.
5
Name:
Anonymous
2009-05-29 13:17
6
Name:
Anonymous
2009-05-29 14:09
>>5
Of course. Everyone likes
car .
7
Name:
Anonymous
2009-05-29 14:13
(define first car)
(define rest cdr)
8
Name:
Anonymous
2009-05-29 15:03
(define contents-of-address-register car)
(define contents-of-decrement-register cdr)
9
Name:
Anonymous
2009-05-29 15:07
(define get-the-contents-of-the-address-register contents-of-address-register)
(define get-the-contents-of-the-decrement-register contents-of-decrement-register)
ENTERPRISE BEST CODING PRACTICE SELF-DOCUMENTING VARIABLE NAMES
10
Name:
Anonymous
2009-05-29 15:30
(define contents-of-address-register-lambda-function-factory-implementation (lambda () car))
11
Name:
Anonymous
2009-05-29 16:56
If you want real Enterprise Naming you would modify the language so that
(define get-the-contents-of-the-address-register contents-of-address-register)
becomes
(assignTheName getTheContentsOfTheAddressRegister contentsOfAddressRegister)
12
Name:
Anonymous
2009-05-29 18:51
>>11
(define assignTheName define)
13
Name:
Anonymous
2009-05-29 19:35
>>12 fails at pretending to be a lisp hacker pretending to be a Java monkey.
(define bindSymbolToValue define)
14
Name:
Anonymous
2009-05-29 20:24
>>13 fails at reading
>>11 and ends up misplacing blame.
15
Name:
Anonymous
2009-05-29 20:44
>>13
Who is the bigger failure: he who writes invalid lisp code, or he who calls the first a failure while writing equally invalid lisp code with a superficial change?