I don't like it for similar reasons to @ncrosby but more importantly because it
makes it impossible for users to tell which is a cast and which is an generic
without looking at all imported symbols:
import typetraits
import foo # defines `type = myseq[T]` or `var myseq: float`
echo myseq[int] # could mean echo cast[int](myseq) or echo myseq[int].name,
depending
Run
however, what I would like is UFCS cast:
12.cast(float)
Run
which currently doesn't compile, but which has much better syntax than cast,
while still remaining distinctive and grepable