Timm Friebe

Results 35 comments of 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: ![image](https://user-images.githubusercontent.com/696742/171826619-b1d7583d-7863-4167-90a3-a7f98fb3e48b.png) ...to this: ![image](https://user-images.githubusercontent.com/696742/171826311-9c2beee1-6b88-4173-bc92-34215bc200a5.png)

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