phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

798
active users

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

@mcc

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 ?

@mcc

but we do have "self" in PHP

𝐭𝐡𝐠𝐬

@mcc

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..