Zulip Chat Archive
Stream: lean4
Topic: changing names in ForIn docs
Alok Singh (Jan 02 2024 at 07:05):
Naming the arguments in only greek letters just seems a bit perverse. \rho instead of 'seq' or something.
I propose that we change it and am happy to implement it.
Eric Wieser (Jan 02 2024 at 10:18):
Looking at docs#ForIn, I'm very puzzled by how [inst : Monad m]
is quantified over in ForIn.forIn
; surely we don't want to quantify over all non-canonical monad structures on m
? Shouldn't [Monad m]
be a parameter on the typeclass instead?
Mario Carneiro (Jan 02 2024 at 10:35):
I don't think it makes much of a difference. A ForIn
impl is supposed to be parametric over the monad anyway
Mario Carneiro (Jan 02 2024 at 10:36):
But it's true that it is a bit weird that m
is a parameter but Monad m
is an argument to the forIn
function
Last updated: May 02 2025 at 03:31 UTC