VoltLang / Volta

Compiler for the Volt Programming Language
157 stars 8 forks source link

Coming from D guide #19

Closed wilzbach closed 5 years ago

wilzbach commented 8 years ago

It would help a lot if you can provide a guide for people who already know D which explains the differences and (why those differences have been made)

bhelyer commented 8 years ago

Some aspects of syntax etc are still somewhat in the air, but this is definitely something we're interested in doing, and with more languages than just D. It's sitting on our Trello marked as 'minimal viable product', so we won't put out a 1.0 without such documentation being created.

Wallbraker commented 8 years ago

One some problem we have is that all developers know Volt pretty well, so we need somebody from the outside to point out most gotchas to us so we can put them down into a document. While we can supply a good basis ourselves we are bound to miss obvious stuff, just because its obvious to us.

timotheecour commented 6 years ago

something like https://github.com/timotheecour/D_vs_nim/ but with D_vs_volt

Wallbraker commented 6 years ago

That looks useful, thanks!

ntrel commented 5 years ago

Even a kept-up-to-date text file with terse items like 'static methods not visible on instance' would be v useful. There needs to be a maintained list with every significant deliberate change. Otherwise it's hard to see any language differences vs D.

ntrel commented 5 years ago

I've made a start here.

Wallbraker commented 5 years ago

Thank you!

Turns out that @bhelyer added a comparison page to the excellent TVPL he wrote here. But it was hidden away inside the book, I have now added direct links on docs.volt-lang.org. The source for it is here so feel free to file PRs to expand it with your notes.

Wallbraker commented 5 years ago

Closing issue as we now have a Volt vs D guide.

ntrel commented 5 years ago

Thanks for the links. I don't think the comparing Volt with D page is selling Volt well to D programmers. (Templates are now implemented right? I like the version enhancement, type declaration syntax is ok but it's a significant C & D porting issue, fn!CC didn't seem interesting to me from that text, the TypeInfo change seems just different, not a clear advantage - it should explain why). I updated my doc a bit, I think a quick comparison of benefits is also useful rather than just listing changes in detail. I added a missing section. Does Volt have return type inference and struct destructors for RAII?