-
Notifications
You must be signed in to change notification settings - Fork 1.4k
alias: mention how to actually create new types #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, I agree :-(. The
I'm thinking of moving that example to the staging area for maintenance. Until I decide where to put it, probably after Alternatively, we could just remove the example code along with the editor, and just leave the text?
Yes, that's the
Yep, @mdinger is working on this in issue #145 Hmm, giving it more thought. I think we can group these topics under a
@vks @mdinger What do you think about that last idea? And/or about temporally removing the |
I think it is still useful to learn about Another possible use case could be defining type Real = f32; in some numerical code, so that it is trivial to switch to |
I don't know if the I do think I'm finding it difficult to expand on I think one solution is to describe it using the bare minimum syntax only requiring what has been learned so far. Then a difficult examples section where more elaborate examples can be included which use more comprehensive syntax. These can have varying difficulties of syntax and should use heavy referencing to other sections readers know where to look for answers. Then, |
I'm going to close this in favor of #174 |
I'm not sure whether the current example is a good idea, because it exercises a
bad practice
that results in something you would not want to do. (That is adding quantities in wrong units.)At least it should be mentioned how the unit example can actually be implemented correctly (I think the idiomatic way is to use one-field structs).
Also see https://blog.mozilla.org/research/2014/06/23/static-checking-of-units-in-servo/.
The text was updated successfully, but these errors were encountered: