Skip to content

A class has elements, not members#3922

Open
henrikt-ma wants to merge 1 commit into
modelica:masterfrom
henrikt-ma:cleanup/class-members
Open

A class has elements, not members#3922
henrikt-ma wants to merge 1 commit into
modelica:masterfrom
henrikt-ma:cleanup/class-members

Conversation

@henrikt-ma

Copy link
Copy Markdown
Collaborator

This is a cleanup of the use of the term member.

To start with, this PR only addresses the issue of calling the elements of a class its members in a couple of places, when the established language to use is to call them elements.

Should we keep calling the elements of a record members?

@henrikt-ma henrikt-ma requested a review from HansOlsson June 24, 2026 07:28
@henrikt-ma henrikt-ma force-pushed the cleanup/class-members branch from 880a241 to 7486889 Compare June 24, 2026 07:29
@HansOlsson

Copy link
Copy Markdown
Collaborator

This is a cleanup of the use of the term member.

To start with, this PR only addresses the issue of calling the elements of a class its members in a couple of places, when the established language to use is to call them elements.

Good.

Should we keep calling the elements of a record members?

Yes, to me "record members" is different as I think of that as a component - not a class.
(Record classes containing class elements is a bit rare, but still exist.)

We could use another name to make that clearer such "record component elements", but it seems a bit clumsy.

@HansOlsson

Copy link
Copy Markdown
Collaborator

There's also "named elements" (classes and components), but I don't think we need to stress that dot-notation can only access named elements.

@HansOlsson HansOlsson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants