Skip to content

Comment on Underscore.phpparent

Comments

Namespaces might be more PHP-ish, but I was primarily concerned with being Underscore-ish.

I'm also not entirely opposed to the namespace approach, but syntactically I would rather call:

  __::foo('bar');
than
  use _;  
  __\foo('bar');
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.