60 karma · joined Jan 27, 2016 (10y ago) · 18 submissions
comment 4y ago · link · parent
fn func<T: FloatingPoint>(fp: T) { ... }
And the "auto" variant is similar to impl argument in Rust: fn func(fp: impl FloatingPoint) { ... }comment 6y ago · link · parent
[1]: https://www.w3.org/TR/html52/sec-forms.html#number-state-typ...
> User agents must not allow the user to set the value to a non-empty string that is not a valid floating-point number. If the user agent provides a user interface for selecting a number, then the value must be set to the best representation of the number representing the user’s selection as a floating-point number.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 8y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
https://github.com/vuejs/vue-cli/blob/master/docs/build.md
Just create a single `.vue` file, run it with `vue build file.vue` and you can immediately just start hacking around. It can be even built that way for production.
Feels simple like in the old days with single index.html, but you aren't missing any features of modern frontend stack.
comment 9y ago · link · parent