funq: syntax that doesn't scare off C++ developers

Aaron J. Seigo aseigo at kde.org
Sat Jul 26 14:18:05 UTC 2014


On Saturday, July 26, 2014 10:56:50 Samuel Gaist wrote:
> On 26 juil. 2014, at 09:08, Ivan Čukić <ivan.cukic at kde.org> wrote:
> >> qore.std.debug::log(z)
> > 
> > Please, just don't put a 'q' everywhere instead of k, c etc. :)
> 
> Sorry, late night typo. I was thinking about quotation and strings at the
> same time.
> 
> Which brings this question: python style string ? Meaning single and double
> quote might be used

Strings are another topic for discussion indeed. Personally, I'd like to avoid 
any difference between 'string' and "string".

I did play around with the idea that "string" could be a translatable string 
(e.g. because it appears in the GUI) and 'string' could be a non-translatable 
constant (e.g. for use as a configuration key) .. but that least all of about 
30s until I remembered that there is need for things like plural translation 
different from normal translation, translation comments, etc.

In general, my plan was to be very unimaginative with strings and map to what 
QString does so that we can use QString in the runtime. I wouldn't normally do 
that except that if funq is to be used with QML and existing Qt libraries and 
application code, using QString as the native internal string system means no 
translation wall in the VM when strings cross that barrier. This turned out to 
be one of the big wins with the new Javascript engine for QML2 ...

> > BTW, there is another project called funq - at codeplex... :/
> 
> And if i've understood correctly, not even related to functional programming
> :/

It has 2 ratings and isn't a language. I'm fine with the duplication.

-- 
Aaron J. Seigo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://kde.org/pipermail/funq-devel/attachments/20140726/5b7b6450/attachment.sig>


More information about the Funq-devel mailing list