Comment

Comment by some

> There are no namespaces, so functions often have prefixes to denote their source

Can somebody tell me, how namespaces work?

Say, without namespaces you would do it like this:

  function isBig($Number)
  {
   return ($Number>1000);
  }

  if (isBig(50)) echo '50 is big';
How would this look like when namespaces are used?
parent some 19 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton