Generic type alias syntax #46
Labels
Brutal
Can take a lot of time and health. Is your life long enough?
Definitely nice to have
Syntax
Syntactic and semantic improvements and sugars
Provide syntax to specify Generic arguments
Add any sintax to the candidate list. Comment any thoughts on any syntaxes
Candidates:
a = x:int + x:uint
)-+ a:array[of int] is special...
a = x:int + x:uint
)a = x:int + x:uint
)-+ a:array of is intuitive for C-like
a = x:int + x:uint
)+- foo(42) of T\r\n :T = is readable
denies chain comparation
a = x:int + x:uint
)bar(a:T): optional of[T] of [T]
is a messnot sure:
rejected:
a = x:int + x:uint
)a = x:int + x:uint
)a of[b]
two syntaxes - looks not very consistent. May be implemented in future
The text was updated successfully, but these errors were encountered: