Jacob Lifshay
Jacob Lifshay
it would be nice if there was a way to have the first line have indentation, e.g.: ````Rust fn f() { // something like this -- not sure the best...
> How big of a problem is this? I am inclined to be against adding more stuff to the language for a problem we don't know we have. I've encountered...
i thought of a way the first line could be indented, just have another line be indented less: ````rust { let return_and_close = ``` return retval; } ```; assert_eq!(return_and_close, "...
> By my reading of the proposal the string literal would be an error because the second line is less indented than the first. well, the proposal can fix that...
> Incidentally, the PHP heredoc syntax solves the indentation issue by using the indentation of the _closing_ quote character, rather than the first content line or the minimum indentation. TLDR:...
please add the alternative: ````rust assert_eq!(``` abc ```, "abc"); assert_eq!(``` abc ```, "abc\n"); assert_eq!(``` ```, ""); ````
> @programmerjake that is already listed in the alternatives under "Relative to closing quote + remove final newline" ah, i missed that because you have no syntax example.
> The last-field limitation actually means nothing ABI-wise since the Rust layout allows reordering the fields the Rust compiler is what chooses what order the fields are in, which also...
> For `Py` in PyO3 we don't need a trait on `T` so we don't suffer the same problem. However the pointer we store is always `NonNull` hence my wondering...
> * What are examples of non-integer types that _should_ implement this trait, and what properties should they have? The only examples I can think of are not exactly well...