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

I think google should make a system where you can play these puzzles by simply asking to and then agreeing not to share your solutions with anyone.

That way, any hacker news people who would like to do so can.

Sure people could enable google search history and google random python stuff, but any privacy minded hackers will have that disabled permanently ( as I do ). I'd like to note that I actually googled python lambda's myself recently, attempting to ascertain whether "lambda:0" is really the shortest way to make an empty object in python...

The fact that google themselves hasn't commented on this hacker news thread itself is somewhat disappointing to me.



> attempting to ascertain whether "lambda:0" is really the shortest way to make an empty object in python...

In what sense does "lambda:0" create an empty object? And how is it better than "object()"?


Specifically I was in need of making an "object" that could have attributes set on it. You can either use lambda:anything_syntax_ok or an empty class. The empty class is much bigger. Lambda is an ugly hack but it works...




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

Search: