Elektrine lite

← Feed

@JSAMcFarlane@mastodon.ie

2026-06-08 12:59 UTC

@kae_bytheocean@slime.global you mean in what way discouraged? There's a style of C++, heavily influenced by Java which requires that all solutions are class-based, hence public-member structs and free functions are passed over as old school. Graduates seem mostly to be taught by Java teachers with only a side hustle in C++, hence that's the style they tend to end up with.

Replies (1)

  • @kae_bytheocean@slime.global 2026-06-08 13:01

    @JSAMcFarlane@mastodon.ie I am specifically talking about OOP-style composition, since the conversation is about OOP. How do structs and functions achieve that?

    Open ##5287015