Then you're wrong. Regular expressions at least are a mini-language; they have their own concepts of control flow, which are very different from the surrounding language.
Mini-languages are useful in places where logical programming--explaining what you want under certain conditions and letting the computer figure out when they happen--is the best way to express your algorithm. make is one example (although it's an extremely limited mini-language); regular expressions ("when you see text like this, give me a true value and put these sections in variables"), style sheets ("when you see nodes that match these criteria, set these properties on them"), and yacc grammars ("when you see this series of tokens, do this") are others.
There is no sig.
|Replies are listed 'Best First'.|
Re^4: the disadvantages of mini-languages
by Aristotle (Chancellor) on Feb 05, 2005 at 20:57 UTC
by Aristotle (Chancellor) on Feb 19, 2005 at 01:39 UTC