Magic methods are implicitly invoked by a programming language when some event or language construct is used.
In Scala, if I define a method called apply in a class or a top-level object, that method will be …
scala syntactic-sugar magic-methods companion-objectI've been playing around with Python recently, and one thing I'm finding a bit odd is the extensive use of …
python magic-methodsWhat is the use of the __sleep and __wakeup magic methods in PHP? I read the PHP documentation but it's …
php oop magic-methodsThis topic expands on When do/should I use __construct(), __get(), __set(), and __call() in PHP? which talks about the __…
php oop magic-methodsWhere is a complete list of the special double-underscore/dunder methods that can be used in classes? (e.g., __init__, __…
python class oop documentation magic-methodsI'm sure I read a while back about a new feature of PHP that was either a new magic method …
php arrays interface casting magic-methods>>> class Thing(object): ... def __index__(self): ... return 1 ... >>> thing = Thing() >>> list_ = ['abc', …
python magic-methodsPossible Duplicate: defining “boolness” of a class in python I thought this should print "False", why is it printing "True"? &…
python methods overloading magic-methodsLong story short: I'm in a situation where I'd like a PHP-style getter, but in JavaScript. My JavaScript is running …
php javascript magic-methodsI try to understand some Slick works and what it requires. Here it an example: package models case class Bar(…
scala playframework-2.0 magic-methods scalaquery slick