On 31 May 2013 16:57, Niko Matsakis <[email protected]> wrote: > I was reading Armstrong's [review of Elixir][1] and I thought this > paragraph was interesting, given our recent discussions about > backwards compatibility in Rust. Basically he argues for tagging code > with the version of the language it is targeting. I think this is a > good idea too, though I don't know how helpful it is. The only > language I knew of that took this approach was XSLT, but I guess > Erlang does too. It'd be interesting to know how helpful it is for > migrating and so forth.
E does the same thing. It's particularly handy if you want to make backwards-incompatible changes to syntax without breaking existing code. E includes one properties file for each version of the language, saying which features should be enabled or disabled for each version. Here's an example with lots of comments: http://wiki.erights.org/wiki/Syntax-props-default.txt -- Dr Thomas Leonard http://0install.net/ GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1 GPG: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
