Steven G. Johnson

Results 1086 comments of Steven G. Johnson

@StefanKarpinski, do you have an opinion regarding my question about character predicates above? e.g. should `isspace('\xc0\xa0') == true`, since this is an overlong encoding of `' ' == '\u0020'`? Currently...

> Currently the only way to print all entries in a vertical layout is `show(stdout, "text/plain", x)` You can also do `println.(x);`

Why would you need a macro for this? Just `showall(x) = show(stdout, "text/plain", x)` … but the latter is so short that I don't quite get the need for `showall`.

`:limit => false` is normally the default, so you shouldn't need to specify it explicitly, though of course it doesn't hurt.

> `# oh I want to see all of x in the same print style` Then using `show` could be problematic because you may be in an environment like IJulia...

> The way I was implementing this in \#47520 was setting and unsetting `Base.active_repl.options.iocontext[:displaysize] = (1000, displaysize(io)[2])` That will break with non-REPL displays, and it also seems problematic to mutate...

> `ShowAll` seems reasonable, but feels odd having to change your object into something else to see all its contents. You could always hide the mechanics of this with another...

The printing could be changed to `'\xf4\x90\x80\x80'`, by calling `Base.show_invalid`, for example. (`'\U110000'` is a lot more understandable, but is meaningless from the perspective of Unicode.) It could also print...

I think we should clearly be returning `false` here, similar to malformed characters. Malformed chars can never get passed to utf8proc in the first place — if there is no...

Isn't this a bug in `ismalformed`? If it can't be converted to a codepoint, isn't it malformed? Or should we have another predicate in this case, where it's failing because...