© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Default class constructor values - Effect Community
EC
Effect Community
•
3y ago
•
1 reply
Patrick Roza
Default class constructor values
congrats on the great new release
!
one final piece of the puzzle for me is default class constructor values
(and we could also derive constructors for struct as well
)
https://github.com/patroza/effect/pull/6/commits/fb10dc0e5f3b91ad0bfd906a5fda67fa5512ecfe
Perhaps a better integration with S
.optional
.
.
(There
's also support for omitting the constructor argument when only optional keys exist
)
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Schema Class Constructor with Typed Keys and Unknown Values
EC
Effect Community / schema
14mo ago
Schema Class Constructor Defaults
EC
Effect Community / schema
2y ago
Modeling a Class with Required Properties and Default Values
EC
Effect Community / schema
3y ago
Seeking a Less Verbose Way to Provide Redacted & Branded Values to a Class Constructor
EC
Effect Community / schema
8mo ago