Consider:

    sort!("a > b")(array);

This is almost perfect, except for "a > b" being a string instead of "real" code. If "a > b" was an actual block of code it could be syntax highlighted by the editor, directly grammar checked by compiler, etc.

Is changing the language the right approach to this or would smarter IDEs possibly be a better direction?


Reply via email to