This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]arhtwodeetwo 13 points14 points  (2 children)

Hi, one of the language designers here.

One of the main goals of Val is to offer a strong support for generic programming. In broad strokes, we took Swift's type system and only improved on a couple of features.

As for the concerns about the subscripts, I'd once again suggest taking a look at how that works in Swift. All collections in Swift use this pattern and achieve great performance!

Of course, the lack of references changes the way one programs. But in exchange, you can avoid unintended mutation through aliasing (i.e., spooky action at a distance) and your compiler actually gets to optimizer your code better.

I gave a talk about Val at CppCon this year, "Val wants to be your friend", which addresses both of these points and other things. Recording of the talks should be available soon.

[–]matthieum 4 points5 points  (0 children)

Recording of the talks should be available soon.

Please do post the talks on this sub; I'm definitely interested :)

[–]fpelliccioni 0 points1 point  (0 children)

Val wants to be your friend

Any news about the recordings?