DEV Community

Discussion on: Typescript Constructor Shorthand

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

Daaaaang. You know, I generally tend to stay away from classes because I prefer to separate data from logic (you know, “functional programming” style), but sometimes it’s really convenient to use a class for encapsulating a set of shared functions (like a date class). So this is really helpful. Thank you! :)

Collapse
 
satansdeer profile image
Maksim Ivanov

Glad to be helpful :)