Closed emil14 closed 1 month ago
I don't think I like it... Lol, :
aren't bad at all actually. It's good to distinguish between ports and struct fields.
Go uses it for both referring to package entities and struct fields
Yeah but we going to use it for 3 things this way, which is even worse
We use
:
to refer ports:The reason for that is that we need
.
to access struct fields:However, syntax for this might change with new #syntax for struct fields selection
Proposal
How about this
Downsides
I don't really like how self ports looks tho. But maybe that's just a habit?
Also we mix port refs with struct fields refs. However, conventional languages tend to use
.
for a lot of stuff too. E.g. Go uses it for both referring to package entities and struct fields