Re:Bosque Programming Language
by dkersten on Thursday May 14, 2020 @04:55AM
(#23177141)
My question is why -> instead of . for method/field access. I see almost all of the examples using -> but a few use . but unless there’s a difference (like how in C++ -> is a pointer dereference access), I think -> just adds noise to the syntax needlessly .
The documentation doesn’t appear to explain when to use one over the other, or perhaps . is a typo.
Re:Bosque Programming Language
by Koshkin on Thursday May 14, 2020 @07:58AM
(#23178407)
Agree, the arrow is syntactically redundant in C and C++ and does indeed make code look noisier that it could be. (The same can be said about the “four-dot” double colon.)
The documentation doesn’t appear to explain when to use one over the other, or perhaps . is a typo.