Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on PHP-Snow - A concise, dry and beautiful language that compiles to PHP.
str = 'foo'.replace('#', '').substr(1).as_array(); int = 5.something();
$str = 'foo'; $str = str_replace('#', '', $str); $str = substr($str, 1); $str = (array) $str; $int = 5; $int = something($int);
Class definitions as well:
Foo { // constants BAR = 'fubar', BAR2 = 'foo'; // properties protected _bar, _fubar; // public properties / methods public bar() { return ._bar; }, fubar() { return ._bar + ._fubar; } }
There are no comments on this comment yet.
Class definitions as well: