> The most common point brought up is that expressions like 
> foo[x](https://forum.nim-lang.org/postActivity.xml) would be ambiguous

The angle bracket version of this isn't great either, in Rust you have to do 
`foo::<x>()`, and Java requires you to do `Class.<x>foo()`. Nim could easily 
enforce `foo[:x]()` which looks better than both of those but it doesn't have 
to (though it might be nice if this was allowed normally and you could lint 
it/a compile option enforced it). Generally if you are using a C inspired 
language then you should use <> because of the familiarity, since that's what 
people look for in those languages. But in Go for example both <> and [] are 
out of place. In Nim there's not much familiarity to C to be desired so you 
don't have to bother with <>, and it's supposed to have syntax that's not as 
anal as Rust's, so you can spare some syntactic clarity for not having to do 
`foo[:x]()`.

Reply via email to