On Tue, 24 Jun 2003, Paul Davis wrote: > this is just another version of the kind of embedded quoting nightmare > that we all face when using shell scripts. the right form is: > > (defun cards > (load-conf (concat (data-dir) "/cards/aliases.conf") 0) > (defun load-conf-all (card) > (when (> card -1) > ((load-conf (concat (data-dir) "/cards/" > (driver card) ".conf") 0) > (setq card (next-card card))) > ) > ) > (load_conf_all (next-card -1)) > ) > > Now *that's* elegant! > > LISP can do everything that the existing language can do, it can do it > better, more flexibly, and more generically. I can see no > justification for making them both coexist. Either do the right thing > and use LISP or continue to hack the existing language "into > shape". Please.
There are two differences between lisp and alsa configuration language. Lisp is standard dynamic language but the ALSA configuration is static (if you ommit the runtime evaluation hacks added to enhance functinality). It is something similar like "HTML" and "Java script". The first one is good to describe the static part of web pages, but if you want something dynamic, you have to use another embeded language. Note that '[EMAIL PROTECTED] "code"' part expands the whole cards tree to (example): cards.pcm.EMU10K1.front { EMU10K1.specific.configuration.is.here } cards.pcm.YMFPCI.rear { YMFPCI...... } Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel