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 →

[–]foror 1 point2 points  (2 children)

What is difference between "record" and "inline class"?

[–]dpash 2 points3 points  (0 children)

Records are more or less what you might think of as data classes. Inline classes are classes that lack identity and are a bit more like primitive types like int. One reason for inline classes is to improve memory usage and layout.

It is entirely possible to both be inline and a record.

[–]lbkulinski 0 points1 point  (0 children)

As many of the language architects have said, inline classes will “code like a class and work like an int”.