• Feed
  • Discussions
struct-vs-class

struct-vs-class

#struct-vs-class
0 followers·2 articles

struct-vs-class

#struct-vs-class·0 followers·2 articles
struct-vs-class
Seng Phrakonkham
Seng Phrakonkham
iosopt.hashnode.dev·Apr 22, 2025
Apr 22, 2025

Statless? Decoupled? Think Again. The Real cost of Combine in Complex system

After exploring Swift’s recommendation to “use struct by default,”I started thinking about how this impacts data ownership, freshness, and system design — especially in reactive contexts like Combine. In my previous post (link), I showed that structs...

Statless? Decoupled? Think Again. The Real cost of Combine in Complex system
Discuss·20 reads
value-semantics
Seng Phrakonkham
Seng Phrakonkham
iosopt.hashnode.dev·Apr 20, 2025
Apr 20, 2025

Struct vs Class in Swift: Understanding the Real Tradeoffs Behind the Recommendation

Swift recommends struct by default – but why? Let's explore the hidden logic behind value semantics, Copy-on-Write (COW), and real-world performance tradeoffs. Value semantics with reference efficiency – under the hood Swift has an interesting recomm...

Discuss·26 reads
struct-vs-class

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

🛍️ Bion: The App That Pays You Crypto Just for Shopping (No Strings Attached)

Ekemini David ·19 reads

Stonfi amd TON wallet effecting US

Wissy Ak·28 reads

The Future of Web3 Tools Is Here — Meet BiyaPay

aaron ubokobong·17 reads

Top commenters this week

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior
1 -
1 -
Anik Sikder
Anik Sikder
nandini
nandini
Sonu Goswami
Sonu Goswami
Jaime David
Jaime David