News for hackers. Stuff that matters.
Re:I'm Switching to Python and Actually Liking It by Octoth0rpe on Wednesday July 16, 2025 @11:09AM (#44583147)
Oh yes they do: https://www.php.net/manual/en/language.oop5.magic.php

The programming languages world is broad/varied enough that any statement like "no other language does this!" is almost certainly wrong (outside of esoteric languages, which python and php most certainly are not)

Re:I'm Switching to Python and Actually Liking It by deathanatos on Wednesday July 16, 2025 @05:01PM (#44586731)
Lua, too:

  __add, __sub, __mul, __div, __mod, __pow, __unm, __idiv
  __band, __bor, __bxor, __bnot, __shl, __shr
  __concat, __len
  __eq, __lt, __le
  __index, __newindex, __call
  __gc, __close, __mode, __name