3 ms·
It strikes me that in a language like Common Lisp, where the identifiers are not strings but symbols with a name, you could give the symbols a map from language
by fiddlerwoaroof 9y ago
It strikes me that in a language like Common Lisp, where the identifiers are not strings but symbols with a name, you could give the symbols a map from language->name and have the input language be nearly irrelevant: as long as it was standard practice to distribute source as serialized symbols rather than as text files.
- fiddlerwoaroof 9y agoOr, maybe, you could add another segment analogous to the package segment to each read symbol, e.g.: (defpackage :foo (:use :cl) (:source-language :en)) (in-package :foo) (defun show (:translations :de schau) () ...) EDIT (forgot): and then, if you needed to access the symbol directly by some particular language's representation, do something like foo:en:show