Hacker Newsnew | past | comments | ask | show | jobs | submit | lolhackernews's commentslogin

TV doesn't show you pictures of your actual father. That has a different emotional impact over a generic TV ad.


Neither did the post that the commenter was talking about. It was just a generic status update put out by a #Brand


Thing is, in Go that library cannot be written generically.


It's not easy at all. I mean, if you are filling in the generated scaffolds, it may be easy. But when your coworkers start using all the nasty routing DSL tricks and the myriad of helpers, it stops being easy. Thing is, it's too big and rich for its own good, and let's not speak of the development practices it encourages.


Did you miss that you can't create local variables?


WHAT? You mean, you can't declare them without initialization. Oh well, you can't; it's also impossible in Python or Lua. Why is it a bad thing?


Let's not confuse matters here: in both those languages an initialization-assignment will introduce a new binding within function scopes. In CoffeeScript it will always be the parent scope's binding, which means that you must take extra care not to introduce variables used in scopes above, or below, at any given time.

On the other hand, confusing both concepts is bad because it makes it harder to reason about scope, and it has been the cause of much confusion regarding closures in Python and Ruby.


Lua has perfectly sane lexical scope for its local variables. Don't mix it with Python and Coffeescript.


Ah, true, I checked again and you're right. Too late to edit.


you can if you cheat: http://coffeescript.org/#try:%0Aa%20%3D%201%0Ax%20%3D%20-%3E...

(I jumped ship to babel though)


On the other hand, virtually every other editor is the correct tool to do that task, yet this one is not. Are we supposed to accept that?


> It seems these days that everybody not only wants to be able to do anything they want, but no matter how outlandish, annoying, or potentially dangerous, it needs to be socially accepted.

Like being a woman or having treated mental illnesses. I now remember why I keep coming to this website, it's just hilarious.


These people are building our world. Comforting, isn't it?


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

Search: