Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
BeetleB
on Jan 8, 2017
|
parent
|
context
|
favorite
| on:
Challenging Clojure in Common Lisp (2014)
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.
nickbauman
on Jan 13, 2017
[–]
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:
Most of the usual operators can be imported as functions:
will get you '<' as a function.