DEV Community

Discussion on: Clean Architecture on Frontend

Collapse
 
happylittleone profile image
littleone

so, class itself is a bad design? the new comers of programming langue(rust,t go) just remove it.

Thread Thread
 
cess11 profile image
PNS11

Depends on the purpose and who's implementing something. In single threaded applications mutable data structures implemented as classes might be a good option for performance reasons.

Golang has structs, they're kinda-sorta object-like, but no classes. Rust is designed to be a good fit for C++ developers and sticks to inherited designs except when it conflicts with the borrower and type system.