Re: [PHP-DEV] Official Preprocessor

2023-02-04 Thread Rowan Tommins
On 3 February 2023 22:48:14 GMT, "Thomas Krüger" wrote: >Hi, > >why not using the existing Typescript programming language and transpile it to >PHP? :) > >There are community examples for doing that: >"ts2php" >https://www.npmjs.com/package/ts2php I can think of a few reasons. Firstly, TypeSc

Re: [PHP-DEV] Official Preprocessor

2023-02-03 Thread Thomas Krüger
Hi, why not using the existing Typescript programming language and transpile it to PHP? :) There are community examples for doing that: "ts2php" https://www.npmjs.com/package/ts2php Maybe creating an own PHP transpiler for Typescript written in pure PHP (community friendly) would be an alter

Re: [PHP-DEV] Official Preprocessor

2023-02-03 Thread Rowan Tommins
On 3 February 2023 18:30:00 GMT, "Olle Härstedt" wrote: >You'd have to rewrite Psalm or Phpstan in C if you want it to be part >of php-src. Or write a completely new project. I don't think that's necessarily true. There are already tools like run-tests written in PHP and shipped with php-src, PE

Re: [PHP-DEV] Official Preprocessor

2023-02-03 Thread Olle Härstedt
2023-02-03 17:38 GMT+01:00, Flávio Heleno : > On Fri, Feb 3, 2023 at 6:19 AM Olle Härstedt > wrote: > >> 2023-02-02 15:19 GMT+01:00, someniatko : >> > Hi Internals >> > >> > The main gist: >> > -- >> > >> > I suggest to introduce an official type-checker / static analyser / >> > prepro

Re: [PHP-DEV] Official Preprocessor

2023-02-03 Thread Flávio Heleno
On Fri, Feb 3, 2023 at 6:19 AM Olle Härstedt wrote: > 2023-02-02 15:19 GMT+01:00, someniatko : > > Hi Internals > > > > The main gist: > > -- > > > > I suggest to introduce an official type-checker / static analyser / > > preprocessor / transpiler for PHP, somewhat similar to TypeScri

Re: [PHP-DEV] Official Preprocessor

2023-02-03 Thread Olle Härstedt
2023-02-02 15:19 GMT+01:00, someniatko : > Hi Internals > > The main gist: > -- > > I suggest to introduce an official type-checker / static analyser / > preprocessor / transpiler for PHP, somewhat similar to TypeScript in > the JavaScript world, which will allow to introduce the featur

Re: [PHP-DEV] Official Preprocessor

2023-02-02 Thread Rowan Tommins
On 02/02/2023 14:19, someniatko wrote: I suggest to introduce an official type-checker / static analyser / preprocessor / transpiler for PHP, somewhat similar to TypeScript in the JavaScript world, which will allow to introduce the features otherwise impossible for the PHP world, at the cost of i