This reduces the friction further between the Model and View for Vue components. There's a lot of magic happening under the hood, but I feel like that magic is obfuscating a part of the code that was unnecessarily a part of the process. With less boilerplate code to setup a component, it feels a lot quicker to get to the meat of functionality. Productivity is all that matters and I feel these changes have increased my productivity quite a bit, even in the short term where I've used it.
Seeing as this is going to become a stable part of the Spec, adopting this more productive structure appears to be the right move for the whole project.
This is an RFC that has since been placed into the Beta version of Vue and is nearing its stable release. The RFC can be found here: https://github.com/vuejs/rfcs/blob/master/active-rfcs/0040-script-setup.md
This reduces the friction further between the Model and View for Vue components. There's a lot of magic happening under the hood, but I feel like that magic is obfuscating a part of the code that was unnecessarily a part of the process. With less boilerplate code to setup a component, it feels a lot quicker to get to the meat of functionality. Productivity is all that matters and I feel these changes have increased my productivity quite a bit, even in the short term where I've used it.
Seeing as this is going to become a stable part of the Spec, adopting this more productive structure appears to be the right move for the whole project.