Being positive is good but relying on others is not. If you really
believe that your idea is worth considering, I suggest revisiting it.
You can ask your self the following questions:
- How is it useful?
- what special thing does it provide with that the current
implementation does not?
- Wha
En mié, 30 jun 2021 14:29:40 +0200 G. P. B.
escribió
> Ignoring the fact that this proposal is way past the cutoff date to be able
> to make it into PHP 8.1 due to how the RFC process works,it seems that this
> feature just came into your mind and you decided to send it onto the
On Tue, 29 Jun 2021 at 18:15, Manuel Canga wrote:
> Hi, folks, here again with a new purpose: ``` as alternative to Nowdoc
> syntax.
>
> Currently, Nowdoc syntax is very "verbose":
>
> $string =<<<'CODE'
>
> Link: '%s'
>
> CODE;
>
> Why doesn't something like this?:
>
> $string =```
>
> Link:
On 30/06/2021 11:51, Manuel Canga wrote:
I see this purpose as a simplification of Nowdocs. Just like `[]` with
`array()`.
A PHP code base might have thousands of array literals, some of which
will be very short, and maybe nested inside each other. That makes the
saving of 5 characters per
Hi Manuel,
If I am not wrong, is not your proposal similar to python's
triple-quoted? It is confusing; don't do this. Instead, current syntax
are sufficient. Second, (`) have special meaning in PHP. It is used to
execute commands on a machine. Why do we have confusing syntax?
Best
Hamza Ahmad
En mié, 30 jun 2021 11:16:24 +0200 Lynn escribió
>
> I'd expect a lot of markdown issues when trying to write examples using
> backticks. While such a thing might not be blocking for a nice language
> feature, it will surely impact the tooling in the ecosystem for
> documentati
En mié, 30 jun 2021 11:03:32 +0200 Guilliam Xavier
escribió
> Hi,
Hi Guilliam
> Maybe other syntax could be used, but I don't know which. In javascript
> > only a backtick is used:
> > https://developers.google.com/web/updates/2015/01/ES6-Template-Strings .
> > But in PHP this i
On Wed, Jun 30, 2021 at 11:03 AM Guilliam Xavier
wrote:
> PS: "amusingly", the code samples are hard to understand after rendered on
> https://externals.io/message/115213
I'd expect a lot of markdown issues when trying to write examples using
backticks. While such a thing might not be blocking
Hi,
Maybe other syntax could be used, but I don't know which. In javascript
> only a backtick is used:
> https://developers.google.com/web/updates/2015/01/ES6-Template-Strings .
> But in PHP this is used as eval.
>
Just a precision, because you keep referring to it as "eval", which makes
me "tick
En mar, 29 jun 2021 21:33:19 +0200 Michał Marcin Brzuchalski
escribió
> Hi Manuel,
> I think a Markdown document including PHP code snippet with above examples
> could cause issues while parsing.
> I can imagine parsers don't expect end-of-snippet tag "```" being not an
> end tag
Hi Manuel,
wt., 29 cze 2021 o 18:16 Manuel Canga napisał(a):
> Hi, folks, here again with a new purpose: ``` as alternative to Nowdoc
> syntax.
>
> Currently, Nowdoc syntax is very "verbose":
>
> $string =<<<'CODE'
>
> Link: '%s'
>
> CODE;
>
> Why doesn't something like this?:
>
> $string =``
En mar, 29 jun 2021 18:40:05 +0200 Rowan Tommins
escribió
>
> The big advantage of heredoc and nowdoc syntax is that you can choose
> the delimiter to be something that you know won't occur in the string.
> For instance:
>
> $markdown = <<<'MD'
> PHP has lots of ways to writ
On 29/06/2021 17:15, Manuel Canga wrote:
Hi, folks, here again with a new purpose: ``` as alternative to Nowdoc syntax.
Currently, Nowdoc syntax is very "verbose":
$string =<<<'CODE'
Link: '%s'
CODE;
The big advantage of heredoc and nowdoc syntax is that you can choose
the delimiter to b
13 matches
Mail list logo