Timm Friebe
Timm Friebe
Implementation: ```diff diff --git a/src/main/php/lang/ast/emit/PHP.class.php b/src/main/php/lang/ast/emit/PHP.class.php index fe08e57..6342402 100755 --- a/src/main/php/lang/ast/emit/PHP.class.php +++ b/src/main/php/lang/ast/emit/PHP.class.php @@ -1086,17 +1086,17 @@ abstract class PHP extends Emitter { $result->out->write("{$scope->type}::"); } - // Rewrite T::member to...
Someone suggested this to return the namespace name of a class in https://externals.io/message/113269: ```php use util\cmd\Console; $ns= Console::namespace; // "util\cmd" ``` If we introduced this feature as described above, the...
A good showcase of this is the following: ```php class Entry { private $attributes= []; public string $slug { get => $this->attributes['slug']; set { $this->attributes['slug']= $value; } } public Date...
Maybe like GitHub does it [here](https://github.com/nickboucher/trojan-source/blob/main/Go/commenting-out.go) or [here](https://github.com/nickboucher/trojan-source/blob/main/Go/stretched-string.go?h=1): Compare this:  ...to this: 
First implementation idea: ```php // What the user writes enum Distance { case Miles(public int $miles); } // What gets emitted abstract class Distance implements \TaggedUnion { public static function...