Movatterモバイル変換
[0]ホーム
If you want X, you know where to find it (was Re: do...until wisdom needed...)
Andrew Dalkedalke at acm.org
Wed Apr 18 22:07:18 EDT 2001
Douglas Alan wrote:>It's a very modern language (more modern in some ways than Python,>multimethods and a sophisticated meta-object protocol being examples>of two very modern features that it supports),Yet more things I don't know about. *Sigh*. OTOH, if you wantto know about details of structural biology data structures anduse cases .. I'm there!>Well, yes, you could use a procedural macro (hygienic, or otherwise)>to convert Pascal code to Python, but it would be one really big hairy>macro, and I don't think that be a good idea.Someone else pointed out to me in private mail a converter fromFortran to Lisp. I think would prefer doing that by calling afunction with a string parameter and getting back, say, a moduleobject with the right function interfaces and constants defined.> More modestly, you>might define two macros, "let" and "set" so that>> let x = 3This would at present raise a SyntaxError exception. I supposebeforehand there would be a statement to make "let" be knownas a new keyword? How do linters and other code checking utilitieswork on this sort of mutability? After all, they don't rightnow do a good job parsing escaped ()s inside of regexps, whichis another example of a little language embedded inside of abigger (and different) one. Andrewdalke at acm.org
More information about the Python-listmailing list
[8]ページ先頭