Jan Tvrdík

Results 219 comments of Jan Tvrdík

@paranoiq BTW: PSR-0 nedoporučuje ani Composer. Kvůli rychlosti stejně doporučují vygenerovat classmapu = to, co dělá RobotLoader.

Tohle je pořád problém, [RobotLoader je už taky case-sensitive](https://github.com/nette/robot-loader/blob/master/src/RobotLoader/RobotLoader.php#L101-L103).

I don't think it makes any sense to allow optinal keys for object shapes (because object tuples are nonsense), so you likely cannot directly reuse array shape parser and/or grammar....

> Can it be used to collect metadata as an alternative to Doctrine\Annotations? @jasny Probably not. Depends on what metadata do you have in mind. Currently it for example does...

@VincentLanglet https://github.com/phpstan/phpdoc-parser/blob/master/doc/grammars/type.abnf may help (but is not fully up to date i think)

> performance was the main reason for not using the PHPStan parser I don't get it. If performance was main reason, why did you implement the parser the [same way](https://en.wikipedia.org/wiki/Recursive_descent_parser)?...

I would much more prefer the `in` / `out` syntax used by Kotlin and TypeScript. It's both shorter and easier to understand.

> Any mnemonic help for that? `in` is for parameters (inputs, writing "into" collection) and `out` is for return types (outputs, reading "out of" collection).

> Parentheses in callable syntax are not interpreted correctly That's nonsence. The syntax is ambigous, there cannot be a correct way to interpret it. Maybe related https://github.com/phpstan/phpdoc-parser/pull/18 (it was a...