Little things that matter in language design: make it do what it looks like it does
Little things that matter in language design: make it do what it looks like it does
Posted Dec 28, 2014 9:15 UTC (Sun) by Cyberax (✭ supporter ✭, #52523)In reply to: Little things that matter in language design: make it do what it looks like it does by maryjmcdermott57
Parent article: Little things that matter in language design
This works just fine:
>
>fn main()
>{
> println!("Hello, world!")
>}
>
>
>fn main()
>{
> println!("Hello, world!")
>}
>
Here you have a 'fn main()' returning the result of 'println!' invocation (a macro).