![](https://programming.dev/pictrs/image/eb00fc44-52a3-47ed-aaa4-be7a0d7b0194.png) ![](https://programming.dev/pictrs/image/a16936a1-2327-4df1-98c9-f70c66670d36.png) This is a challenge from https://programming.dev/post/12476471

75
7
What are variables and semicolons for actually?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    TadoTheRustacean
    Now 100%

    Semicolons. Statement's can be written in multiple lines such as rust io::stdin(&mut foo) .unwrap(). Idk if it would work if the newlines were significant. Also when I paste something, it could be ready hard for the formatter to format it.

    5
  • What are variables and semicolons for actually?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    TadoTheRustacean
    Now 100%

    If you know about rust you know it's a programmable programming language, meaning that you can make macros. There could be a macro that would do that but 1. Macros is rust code to write rust code so they have the complexity of rust squared 2. I said to myself the only macros I will allow myself to use in this challenge is println and allow

    7
  • What are variables and semicolons for actually?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    TadoTheRustacean
    Now 100%

    As you can see, rust allows you to not put semicolons at the end of code blocks. The presence of semicolons is not a language killer. It's a very hard language, but its worth it.

    8
  • ![](https://programming.dev/pictrs/image/26357359-8022-46f9-a77c-1f4f6a2fa9a1.png)

    101
    36
    thisIsGoingToBeASeriousDebate
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    TadoTheRustacean
    Now 100%

    I am hopeless at getting the text_ptr simpler than i64::from_str_radix(&format!("{:p}", my_string)[2..], 16).unwrap(); How can i get it the normal way?

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearTA
    Now
    4 13

    TadoTheRustacean

    programming.dev