Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rbanffy
on Dec 8, 2008
|
parent
|
context
|
favorite
| on:
What is the most intrusive wart on your favourite ...
Wow... This one is quite pretty. Really. A very nice side effect of the "everything is an object" concept.
silentbicycle
on Dec 9, 2008
[–]
There's not any reason you need objects for that, though. Python's join in the string module is called as join(list [,sep])*, and you could say
def br(sl): return string.join(sl, "<br>")
or
br = lambda sl: string.join(sl, "<br>")
for the same effect. It's actually due to first-class functions.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: