On 13-04-27 11:06 PM, Palmer Cox wrote: > Hi, > > Rust seems like a really excellent language. One feature that Rust > doesn't seem to have is a built-in list-comprehension syntax. Wikipedia > points out that macros can be used to simulate this feature, but the > resulting syntax is a bit clunky. Are there plans to add such a syntax > to the language? > > I'm also curious if there are plans to add a Haskell style do-notation > syntax to the language? It seems that macros can also be used to > simulate this, but the end result is even more clunky than using macros > to simulate list-comprehensions. I would think that such a syntax might > be very useful for working with the results from multiple tasks.
Thanks for your interest. Unfortunately neither of these are in scope for the current generation of the language. The macro system may not be ideal, but further major families of syntax extension like this belong in it. -Graydon _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
