Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Avoid Else, Return Early (2013). Parent comment
Same behavior on Ruby:
def content_markup(children) case children when String, Numeric children when NilClass, TrueClass, FalseClass return else # ... end end content_markup 'foo' #=> "foo" content_markup 0 #=> 0 content_markup true #=> nil content_markup false #=> nil content_markup nil #=> nil
There are no comments on this comment yet.
Same behavior on Ruby: