Eldred Habert

Results 519 comments of Eldred Habert

This is in theory possible, but `#pragma once` has many problems, e.g. with symlinks and hard links. That said, it's used in C because forward-decls are often necessary, and thus...

> Yes, I do have an example. I use include files to define constants and macros, that I need to reach from multiple files. This creates the same problem as...

Could you link to a project that would benefit from it, please? We must balance two things: how useful the feature would be to other projects, and the cost for...

I haven't had a chance to explain the rationale more in depth, so please allow me to: I think there is a major split between a *file* (as in, the...

No worries, then :) As for the reviewing process, I *tried* making the commit log be easier to process piece-meal. (GitHub's UI allows you to review each commit's changes individually.)...

FWIW, this is still as much whitespace as the current code, there's just more labels so it's more whitespace. I can look into removing trailing whitespace, but does it cause...

Sublime Text has a "only trim trailing whitespace on lines I modified myself" option, which is more appropriate for this. I don't know if VS Code has something similar.

White rebasing this PR, I'm realising that there are several commits that could be cherry-picked into separate PRs. @zesterer, would you prefer if I did that?

I've rebased this PR against `main`, and ensured that every single commit passes `cargo test` on its own, so commits can be cherry-picked as necessary. `fmt` and `clippy` fail, but...

Those checks don't fail locally, but this seems to be caused by a Rust version difference. I'm not sure which version I should be using, since the crate doesn't specify...