Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Or, 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: