Better HN
topnewbestaskshowjobs
Log inSign up

broquaint

10 karma · joined Mar 4, 2009 (17y ago) · 3 submissions

http://broquaint.com/
Submissions

comment 6y ago · link · parent

Might I also recommend Keith Houston's wonderful book "Shady Characters: The Secret Life of Punc­tu­ation, Sym­bols, & Other Ty­po­graph­ical Marks":

https://shadycharacters.co.uk/books/shady-characters-the-boo...

He also posts, with some regularity, to his blog on the same topic:

https://shadycharacters.co.uk/

Employing the correct usage of hyphens, en dashes and em dashes continues to be a small daily joy for me.

comment 13y ago · link · parent

Relevant discussion on perl5-porters:

http://www.nntp.perl.org/group/perl.perl5.porters/2012/10/ms...

comment 15y ago · link · parent

The behaviour is due to the fact that variables in JavaScript are scoped to the function, although as that code is in the global scope and lacks a var declaration it will live under the global object (window in this case). So in that example each closure captures the same variable hence 4 being produced within each alert(). For more info see: https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/C...