Semantics Discussion #4
Replies: 8 comments 12 replies
rough roadmap
|
|
Should there be |
|
I think we should allow the shadowing, declaring a new variable everytime is not very convenient to a programmer. We can track the variable scopes so I don't think its a big issue. |
|
I don't like this: This could be a mistake by programmer too, and we should error here that it's a duplicate declaration, also, this is not safe, as it could have lifetimes and we can't just delete like that. I don't think any systems langauge allows this thing. |
So let's discuss type system
Will this be implicit or explicit and what about the vice versa that is u8 to u32?
CC @vasucp1207 |
|
@vasucp1207 how type conversion will take place? suppose I wanna do int to float or float to int, which one will be legal? can I do char to string? but then how string to char will work? what if I do i32 to i8? or i8 to i32? many questions! |
|
suppose so then we can do: give error. does not. yeah? |
|
consider a this should be illegal or warning or what? I think it should be illegal, as proc does not return anything right. |
Uh oh!
There was an error while loading. Please reload this page.
let's discuss all the sema rules here.
All reactions