« first day (2657 days earlier)      last day (822 days later) » 

5:14 AM
remove the todo!(); and the code no longer compiles. that feels wrong. (I mean it shouldn't compile with the todo!(); either.)
 
 
1 hour later…
6:25 AM
The whole todo macro feels wrong but what would be the point of a macro if it didn't help deal with unfinished code ?
 
 
5 hours later…
11:00 AM
@FrancisGagné that exactly why I love todo
todo return is !
it's like a exit
nothing is wrong
it's a Q&D macro useful for dev
 
 
4 hours later…
2:47 PM
I was trying to avoid a silly pattern in error handling here, namely the Custom and CustomMessage variants. But without the latter, I could not find an easy way to return an error as a static message.
 
3:14 PM
I don't understand what you want here
I think one can allocate a box with a static str anyway
> Apple Silicon M1
 
 
2 hours later…
5:13 PM
any tool to compile rust code to lua ?
 
 
5 hours later…
10:29 PM
@Stargateur It's not specific to todo!(). Any expression/statement that diverges (e.g. return) but is to be evaluated before the expression that errors will hide the error. I guess I'm just used to other languages giving errors in unreachable code.
 

« first day (2657 days earlier)      last day (822 days later) »