User forums > General (but related to Code::Blocks)

Different formats are indistinguishable

<< < (2/4) > >>

smallB:
Also I think that some "global" settings should be allowed. What I have in mind is that if in the scenario:
a| 1010| int
b| 1101| int
c ...
.
.
.
n ...

I decided that I want to have all of them in one format I should be able to do it with single command. As the things are now I need to do it separately for each variable. It is simply tedious.
Another thing that I observed while working on my last project is that the leading zeros are not displayed. I'm not sure if that's the wise/correct design decision. Sometimes you can simply by looking at length tell if those types are identical (size wise) etc. Also if you for example are ok with this behavior, then it should be made optional - display/don't display leading zeros. Separate them/Don't separated them, here what I have in mind is:

a|1001 0101 0100
is much more readable than:
a|100101010100

Any opinions?

Jenna:
For distinguishing the format, wy not use prefix "0b" for binary and either "0" or "0o" for octal (the latter only if octal would be available, what it is not at the moment). A prefix for unsigned would also make sense ("u").
Without looking at the code, I would say it should not be too hard to implement, but I might be wrong.

smallB:
Hi Jens

0b for binary - I thought exactly the same
0x for hex - I believe that there will be no argument on this?

I don't really think that there is a need to do prefix for unsigned/signed - this is already provided in type column and is not consistent with 0x etc because once (0x) one is presented with format and second time (u) one is presented with type.

oBFusCATed:
I doubt it would be easy this way...because you can set the formatting for pretty random staff.

About the header: I prefer to not have another option.

smallB:

--- Quote from: oBFusCATed on November 25, 2012, 04:32:01 pm ---About the header: I prefer to not have another option.

--- End quote ---

Well, then you are imposing your preferences on others which may have different preferences to yours. This option could be off by default and you simply don't have to use it if you don't want to, nor even see it. But if someone wants to have the columns titled, why should this be refused to this person, especially if it doesn't disturb the way you work?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version