I don't know of any language that has type on right without a non-ambiguous marker like `let`. That is what avoid ambiguity.
Re:Types Are Moving to the Right
by Technetium_Hat on Sunday March 17, 2019 @02:26AM
(#19412529)
Python has (optional) types on the right, and no variable declaration keyword.
Re:Types Are Moving to the Right
by colanderman on Sunday March 17, 2019 @02:09AM
(#19412494)
The ambiguity issue the GP raised in type-on-the-left languages is also trivially solved by requiring `let`. That's not an argument for either style.
Re:Types Are Moving to the Right
by naniwaduni on Saturday March 16, 2019 @09:41PM
(#19411634)
plausible misread: "it's not at all clear"
Not at all. C/C++ grammar is explicitly contextual. `foo * bar` is a declaration if-and-only-if `foo` was previously declared as a type. Otherwise it is an expression. The subsequent tokens have zero bearing on this.
Nor is this a good argument for types-to-the-right. If C named pointer types like `⋆foo` instead of `foo⋆` [stars used to avoid formatting glitches], then putting the type to the right as `bar * foo` would be equally ambiguous as your example.