[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Print more information about why an identi
From: |
Evan Hanson |
Subject: |
Re: [Chicken-hackers] [PATCH] Print more information about why an identifier cannot be exported |
Date: |
Sun, 20 Oct 2019 09:37:16 +1300 |
On 2019-10-19 10:23, megane wrote:
> This doesn't say why the abbreviation cannot be exported. As a beginner
> I'm left wondering that maybe there's some strange reason, but the
> compiler is not telling it to me.
Good point, thanks for the better suggestions.
> - Warning: Cannot export `a-type-alias' because it is a type
> abbreviation.
>
> I'd vote for this, because of its shortness. The warning is actually
> fatal, and the compilation will stop shortly with a message that
> includes the module name.
Yeah, I've gone with this one. "Because it refers to a foo" is probably
more correct, but I don't think the extra pedantry will help people fix
their programs, which is the whole point of these messages...
Anyway, pushed, thank you megane!
Evan