Skip to content
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

new syntax: type defines multiple types #43

Open
zilinc opened this issue Dec 8, 2016 · 7 comments
Open

new syntax: type defines multiple types #43

zilinc opened this issue Dec 8, 2016 · 7 comments

Comments

@zilinc
Copy link

zilinc commented Dec 8, 2016

type A, B, C
@zilinc
Copy link
Author

zilinc commented Dec 8, 2016

and also for abstract functions/constants:

const_1, const_2, const_3 : U16

@zilinc
Copy link
Author

zilinc commented Dec 8, 2016

type A, B, C = U16 looks ambiguous, so we might not implement this feature, unless there're some good suggestions.

@liamoc
Copy link
Collaborator

liamoc commented Dec 8, 2016

Is this something to put in our syntactic sugar bucket?

@zilinc
Copy link
Author

zilinc commented Dec 8, 2016

should be, indeed.

@ajaysusarla
Copy link
Contributor

we should be able to do something like type A = U16, B = U32, C = U64 even, I think.

@liamoc
Copy link
Collaborator

liamoc commented Dec 8, 2016

what about something like type A, B = U16 ? Is that equivalent to:

type A
type B = U16

or

type A = U16
type B = U16

or not permitted?

@zilinc
Copy link
Author

zilinc commented Dec 8, 2016

originally I thought the latter.. just like typedef.. but as I realised the potential ambiguity I gave up...

@zilinc zilinc added the newcomer low-hanging fruit label Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants