Skip to content

update: Add section about constructor parameters and properties in classes #4872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

choonkending
Copy link

@choonkending choonkending commented Jun 1, 2025

High Level Overview

KT-77990

When I was going through the documentation, I had a bit of confusion around "When would we include val or var vs when we shouldn't?" I could not really find it anywhere in the docs, hence I am proposing to include a section explaining the difference between parameters and properties in the constructor.

While it may seem obvious, I hope this clarification can help!

I debated between making this it's own tiny section - but figured it flowed naturally from the current description of properties.

First time contributing to these docs, so happy for any feedback/correction/discussion.

Include a brief explanation between the difference between constructor parameters and properties in the constructor.
@choonkending choonkending requested a review from a team as a code owner June 1, 2025 01:08
@choonkending choonkending changed the title Add section about constructor parameters and properties for docs Add section about constructor parameters and properties in classes Jun 1, 2025
@choonkending choonkending changed the title Add section about constructor parameters and properties in classes update: Add section about constructor parameters and properties in classes Jun 1, 2025
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