Le mercredi 16 septembre 2015 à 21:06 -0400, Jesse Johnson a écrit : > That looks like it would fit my use case well. Is this the issue we > should use to discuss getting this merged in? I am willing to help > test and debug. > > https://github.com/JuliaLang/Formatting.jl/issues/8 > > Summarizing my argument so far: > > In order to promote the practice of using UInt to explicitly declare > numbers as being unsigned, The point is, in Julia using unsigned ints to store values that should always be positive is *not* recommended. For example, array indices are signed. There are advantages to this choice, which have been discussed several times on the list (or on julia-dev); you should be able to find them in the archives.
Regards > I think the default for UInt should be to print decimals, and allow > switching to hex via the above interface for those who use it for bit > strings. This has the added advantage of being consistent with Int, > plus I strongly suspect using UInt to indicate an actual unsigned > integer (and not a bitstream) is the most common use case. > > I am not sure where to go from here to request this change. Should I > make a formal request to Julia devs, perhaps by posting in julia-dev? > Or should I post in the existing related issue linked above? Or > should I create a new issue elsewhere? Still learning how the > Julia community does things, so suggestions are appreciated. > > On 09/16/2015 08:50 PM, Tom Breloff wrote: > > > Maybe there should be an interface for declaring the default > > > output format for a specific type, similar to stream formatting > > > in C++? > > I started down this path, made a PR to Formatting, but no one ever > > commented or merged it, so I assume no one cares about this > > functionality. Here it is if you're curious: > > > > https://github.com/JuliaLang/Formatting.jl/pull/10
