Zulip Chat Archive

Stream: maths

Topic: domain vs domain


Yaël Dillies (Aug 11 2021 at 11:52):

How should we distinguish between the domain of a function f : α → β(that is α) and the domain of a partial function f : α →. β (that is, f.dom)? I'm currently writing the docstrings for data.pfun and I have the feeling that it'll be confusing.

Yakov Pechersky (Aug 11 2021 at 13:09):

If it's named f.dom, then refer to it as dom, while the other is domain?

Yaël Dillies (Aug 11 2021 at 13:11):

Yeah, but would you say that when speaking? Wouldn't it sound weird in the docstring?

Eric Wieser (Aug 11 2021 at 13:13):

"domain of f vs dom of f"

Eric Wieser (Aug 11 2021 at 13:14):

You have formatting to distinguish the two

Yaël Dillies (Aug 11 2021 at 13:14):

Okay sure

Mario Carneiro (Aug 11 2021 at 16:52):

You could use "base domain" to refer to the base type of the domain set of a partial function, but it would need explanation anyway so you might not gain much


Last updated: Dec 20 2023 at 11:08 UTC