octave-maintainers
[Top][All Lists]
Advanced

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

Re: Display of strings by interpreter


From: John W. Eaton
Subject: Re: Display of strings by interpreter
Date: Wed, 23 Oct 2019 13:29:19 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 10/23/19 11:58 AM, Rik wrote:

Continuing with the theme of how results are displayed in Octave, should we
move to displaying char arrays and strings with enclosing single or double
quotes?  This is how Matlab behaves, and I think it may be useful to
understanding when there are trailing spaces or null characters.

Current behavior with Octave

octave:1> "Hello World"
ans = Hello World

Current behavior with Matlab

"Hello World"
ans = "Hello World"

'Hello World    '
ans = 'Hello World     '
strtrim (ans)
ans = 'Hello World'

This feature has been requested at
https://savannah.gnu.org/bugs/index.php?56973.

Yes, this seems like a good thing to do. Also the feature request in #56974. I would even say that we could consider displaying the type if it is double.

Did you want to work on either of these?

jwe



reply via email to

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