bugGNU Octave - Bugs: bug #53469, display of char array should...

 
 

bug #53469: display of char array should include quotes, differentiate char and string object in the future

Submitted by:  Dildar Sk <hodor123456>
Submitted on:  Mon 26 Mar 2018 06:13:27 AM UTC
 
Category:  Interpreter Severity:  1 - Wish
Priority:  1 - Later Item Group:  Feature Request
Status:  Postponed Assigned to:  None
Originator Name:  Dildar Sk Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Fri 11 Jan 2019 12:39:12 PM UTC, comment #4: 

I'm +1 for adding quotes around the string display. This would help differentiate it from other types. E.g. numerics:

>> x = 1.234
x =  1.2340
>> y = '1.2340'
y = 1.2340

and @datetime, if Octave gains that functionality.

Andrew Janke <apjanke>
Mon 26 Mar 2018 06:04:19 PM UTC, comment #3: 

Ok, I've updated the summary.

It could be argued that quotes around a string would look better.

Mike Miller <mtmiller>
Project Administrator
Mon 26 Mar 2018 05:57:48 PM UTC, comment #2: 

I am not saying implementing string class here.
I am saying at least if the char/string output comes within ''
it would look good and would be more intuitive.

Dildar Sk <hodor123456>
Mon 26 Mar 2018 05:53:07 PM UTC, comment #1: 

Thanks for the bug report. Can you explain what you think the difference is?

To me the difference is bug #50855.

Mike Miller <mtmiller>
Project Administrator
Mon 26 Mar 2018 06:13:27 AM UTC, original submission:  

In MATLAB,

>> 'hodor123456'

ans =

    'hodor123456'

>> "hodor123456"

ans =

    "hodor123456"

>> num2str('hodor123456')

ans =

    'hodor123456'

But in GNU Octave,

>> 'hodor123456'
ans = hodor123456
>> "hodor123456"
ans = hodor123456
>> num2str('hodor123456')
ans = hodor123456

So, how MATLAB treats Char and String is very fancy and
intuitive. So, if this feature also get implemented in Octave
would be good.

Dildar Sk <hodor123456>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by apjanke (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by hodor123456 (Submitted the item)
  • -email is unavailable- added by hodor123456
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-21 mmuetzel Dependencies- => bugs #56973 is dependent
    2018-03-26 mtmiller Severity3 - Normal => 1 - Wish
        Priority5 - Normal => 1 - Later
        StatusNone => Postponed
        SummaryRequest to make string,char more intuitive => display of char array should include quotes, differentiate char and string object in the future
    2018-03-26 hodor123456 Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.9