A random idea

This commit is contained in:
greg 2017-09-13 23:04:26 -07:00
parent 5810fb7961
commit 3220f0aec7

View File

@ -74,7 +74,10 @@ fn main() {
#syntax is, I guess, for <expr> <brace-block>, where <expr> is a bool, or a <arrow-expr> #syntax is, I guess, for <expr> <brace-block>, where <expr> is a bool, or a <arrow-expr>
# type level alises # type level alises
typealias <name> = <other type> typealias <name> = <other type> #maybe thsi should be 'alias'?
#what if type A = B meant that you could had to create A's with A(B), but when you used A's the interface was exactly like B's?
# maybe introduce a 'newtype' keyword for this
#declaring types of all stripes #declaring types of all stripes
type MyData = { a: i32, b: String } type MyData = { a: i32, b: String }