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

Actually, yes you can in Python - indirectly.

Most of the usual operators can be imported as functions:

    from operator import lt
will get you '<' as a function.


But I have to use lt as a key, I can't use <. Important difference, no? Writing a DSL is much easier with that difference.




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

Search: