Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-05

Preparing a next release, your opinion for the future

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hello,

We're getting closer to releasing version 2.0 of the pas2js compiler. The major highlights of that release will be:
- Attributes
- Generics
- Async/Await support
- Better exception interception
- Class constructors

We'd again like to know what you would like to see next in pas2js:

Please fill in your preference here:

https://forms.gle/VfLbgxd8fQrU2hia8

Most items will be clear, but maybe asm [annotations] and library support need some small explanation:

- Asm annotations are hints to the compiler, you can tell the compiler what variables your asm code uses, so the compiler won't optimize them away.

- Library support is for NodeJS, VS Code, Atom and Electron plugin development, as well as developing W3 WebComponents

Michael.

Reply by email

warleyalex
to Michael Van Canneyt

Unfortunately, a long period of time I don't play with pas2js... anyway, I think the multi-line string functionality is quite useful when you have multi-line string content, such as an JSON, a long format string, a snippet of CSS or HTML etc.
Please implement this functionality first.

var s := #"Lorem ipsum 'dolor' sit amet, consectetur adipiscing elit.
               Duis l'ipsum odio, pretium ""hendrerit"" varius sed,
               aliquet vitae elit.
               Sed eu libero nec nisl ""malesuada"" dignissim.";

OR $INCLUDE syntax expanded to include a file as a string.

Best regards,
warleyalex

Reply by email

Michael Van Canneyt
to warleyalex
warleyalex wrote 12 lines
Unfortunately, a long period of time I don't play with pas2js... anyway, I think the multi-line string functionality is quite useful when you have multi-line string content, such as an JSON, a long format string, a snippet of CSS or HTML etc. Please implement this functionality first. var s := #"Lorem ipsum 'dolor' sit amet, consectetur adipiscing elit. Duis l'ipsum odio, pretium ""hendrerit"" varius sed, aliquet vitae elit. Sed eu libero nec nisl ""malesuada"" dignissim."; OR $INCLUDE syntax expanded to include a file as a string.

FPC has a multiline string in trunk, so when it is implemented, it will be implemented compatible to FPC.

Michael.

Reply by email

Michael Van Canneyt
to warleyalex
warleyalex wrote
This is an old very popular idea: https:/msg38458.html

2 requests in 25 years: I doubt it qualifies as "very popular" :)

for me, the multi-string feature would represent a watershed. High priority.

I'll see about the {$includestring } directive. That should be relatively easy.

The backtick syntax is more controversial and invasive.

Michael.

Reply by email