Comment

Comment by some

We do this thing in PHP with classes. See below. What is the advantage - if any - of namespaces?

  class yo 
  {
   function isBig($number)
   {
      return ($number>1000);
   }
  }

  if (yo::isBig(50)) echo '50 is big';
parent some 19 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton