Programming languages that practice the doctrine of Anattā: C++, C#, Java, JavaScript
Programming languages that do not practice the doctrine of Anattā: Lua, Ruby, Objective-C, OCaml, Swift, Rust
Programming languages which are ambiguous with respect to the doctrine of Anattā: Python
I honestly find this classification so interesting. I do fail to understand how PHP is practicing the doctrine of Anattā (which I just learned about).
Update: Not just PHP, I fail to understand how you actually separate them all.
@mcc is it because of "self" keyword ?
@thgs Yeah ^_^
but we do have "self" in PHP
it goes usually, but not always next to the legendary "Paamayim Nekudotayim" operator.
Example:
self::hello('world')
@mcc Can also be a type-hint. Return type hint or argument type hint. Like
public function something(self $sameInstance): self
(accepts same class instance and returns same class instance).
No practice of Anattā from PHP, I am afraid..