Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Namespaces are a rubbish hack

Name: Anonymous 2018-08-22 12:49

How are name spaces different than prefixing every variable name with your library/organisation name? With current editing tools (powerful search and replace), they are one and the same.

Name: Anonymous 2018-08-22 23:58

Proper namespaces are functions:
(define (mynamespace f)
(cond ((eq? f 'anus) (lambda (x) (x x)))
((eq? f 'snake) (lambda (x) x))
(#t (error ";_;")))


Use as:
((mynamespace 'anus) (mynamespace 'anus))
((mynamespace 'snake) 1)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List