ThreadSky
About ThreadSky
Log In
dr-axel.de
β’
125 days ago
π @johannesewald.de
Comments
Log in
with your Bluesky account to leave a comment
[β]
johannesewald.de
β’
125 days ago
Interesting π
Why did you choose a class with static members? Wouldnβt an object be more straightforward?
0
1
reply
[β]
dr-axel.de
β’
125 days ago
Thatβs the only way you can avoid creating separate constants for the symbols:
https://2ality.com/2025/01/typescript-enum-patterns.html#using-symbols-as-property-values
1
1
reply
[β]
johannesewald.de
β’
125 days ago
Should have read it more thoroughly π
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
Why did you choose a class with static members? Wouldnβt an object be more straightforward?