On Wed, May 29, 2024 at 10:43:36AM +0200, Grégory Vanuxem wrote:
> Hello,
> 
> I know my code is very bad, but I was working on something else. I'm used
> to encountering many pitfalls, bugs from myself or others, omissions here
> and there, not necessarily from me, and if I stop each time, or fix
> everything, I don't make any progress. I come back to this part of the code
> afterwards, of course, I put markers on it. It's _draft_ code. I was fed up
> with this code and in fact it allowed me to see that perhaps in the WSTP
> protocol MathLink can support sending the Julia boolean type ‘bool:
> true|false’ to the Wolfram engine => True|False, just one line of code that
> I'm going to submit and, in passing, ask here to add perhaps a very simple
> but very practical language construction, the conditonal ternary operator
> (condition ? exprIfTrue : exprIfFalse). I don't think the Spad compiler
> handles it. Like C, Perl, Julia etc.

We have ternary operator, it is spelled 'if condition then exprIfTrue else
exprIfFalse'.  As a shorthand one can write '(condition => exprIfTrue ;
exprIfFalse)'.  I do not think that using C syntax for it would be
good idea.

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/Zlch7m8JB1tpGSDX%40fricas.org.

Reply via email to