this post was submitted on 27 Jun 2023
29 points (100.0% liked)
Programming
13377 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think there's a few places where this is true in Rust especially. For example, coming from a C-style language (and Python) the
enum
keyword throws a lot of people off. In Rust, while you can use anenum
to represent a set of "constant" values, it's more common to use it to represent a tagged union, making it more liketype
from F#:You might find that some concepts look and feel similar to what you might see in traditional OOP languages, but often end up working more like something out of a functional language.