Interpolation struct names and location
Steven Schveighoffer
schveiguy at gmail.com
Wed Feb 14 16:28:32 UTC 2024
On Wednesday, 14 February 2024 at 12:59:34 UTC, Paul Backus wrote:
> I think putting them in `core.interpolation` instead of
> `object.d` is fine. Having to `import core.interpolation` when
> you write a function that takes an interpolation sequence is no
> worse than having to `import core.vararg` when you write a
> variadic function.
I'm not too worried about having to import. It's more of the fact
that these are going to be mangled with the package/module name
(though the mangling backreference system will limit this a bit).
I should probably actually test and see what it looks like.
> I agree that `Interpolation` is too long. `i` looks kind of
> weird to me (violates the D style rules about capitalization),
> but if we want brevity above all else, it's a reasonable
> choice. The only other thing I can think of is `Interp`
I thought of `IHeader` but that looks like an interface...
I also thought of `IESHeader` but this is less obvious to someone
who sees it.
InterpHeader is still long, but a bit better. Any reduction is
better than no reduction?
-Steve
More information about the Digitalmars-d
mailing list