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

Jay Woods woodsjaya at gmail.com
Fri Jul 25 10:21:23 UTC 2014


It would be interesting if:

defined = undefined -> returns false but now defined is undefined.


On Fri, Jul 25, 2014 at 5:36 AM, Marco Martin <notmart at gmail.com> wrote:

> On Friday 25 July 2014, Ivan Čukić wrote:
>
> > While there is no technical need for ==, it doesn't mean that the
> resulting
> > code is readable. It is needed for usability - if you are reading a long
> > function and encounter something = 2, you need to go upwards and check
> > whether something was already defined or not to see whether it is a new
> > alias or a comparison.
> >
>
> unless assignment becomes this wacky thing, equivalent to comparison for
> all
> intents and purposes:
>
> undefined = defined -> returns true, has a sideeffect: the variable that
> was
> undefined gets assigned the value of defined
> defined = defined -> returns true iff the two defined variables/values have
> the same value, no sideeffect
> defined = undefined -> returns false, no sideeffect
>
> not sure is a good thing tough ;)
>
> --
> Marco Martin
> _______________________________________________
> Funq-devel mailing list
> Funq-devel at kde.org
> https://kde.org/mailman/listinfo/funq-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kde.org/pipermail/funq-devel/attachments/20140725/7d15d7a8/attachment-0001.html>


More information about the Funq-devel mailing list