Skip to content
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

New syntax proposal for accessing instance attributes #11

Closed
HashLDash opened this issue Apr 17, 2021 · 5 comments
Closed

New syntax proposal for accessing instance attributes #11

HashLDash opened this issue Apr 17, 2021 · 5 comments

Comments

@HashLDash
Copy link
Owner

Photon currently uses the 'self' name to identify the class instance.

The proposed alternative (or optional) notation is:
.attribute = 2
Instead of
self.attribute = 2

@jsalexsandro
Copy link
Contributor

Eu preferia com o self
Mas claro minha opinião não importa

@EdMartinezNunes
Copy link

bem se não vai alterar no desempenho o explicito é melhor implicito.

@ntaraujo
Copy link
Contributor

altera no desempenho do programador

@HashLDash
Copy link
Owner Author

Eu pretendo deixar essa notação opcional.

@Huyston
Copy link
Contributor

Huyston commented Aug 25, 2021

Implementado no commit 6ae9159

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

No branches or pull requests

5 participants