octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51045] ?: ternary operator


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #51045] ?: ternary operator
Date: Wed, 17 May 2017 12:03:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #2, bug #51045 (project octave):

Yeah, merge is the Matlab compatible way to do logical selection, roughly
equivalent to a ternary operator. Octave aliases this to ifelse for those
familiar with Lisp.

The main problem is that this function cannot short-circuit to evaluate only
one of its arguments, no function or operator overload can do that, but it is
what it is. However, I suspect Ernst is looking for a short-circuiting ternary
operation.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51045>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]