On Fri, Sep 17, 2010 at 1:26 AM, Patrick Walton <[email protected]> wrote:
> The motivation for this is the repeated type declarations in benchmarks like
> fasta [1]. They can make code somewhat noisy.
I think there's two points here. I must admit I found it a bit hard
work _writing_ fasta - I didn't realise how much I relied on C's
integer promotion rules. But I think that can be overcome with a bit
of mental discipline.
The second point is whether the suffixes obscure the meaning of the
code when _reading_ it. I think they do to some extent but not too
badly.
Is it possible to infer the type from the expression, e.g. in 2 + x
the 2 matches the declared type of x?
Also is it possible to modify the emacs rust-mode to show the suffix
in a different colour?

Pete
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to