GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Jan :rust: :ferris: (janriemer@floss.social)'s status on Monday, 20-Jan-2025 04:56:34 JSTJan :rust: :ferris:Jan :rust: :ferris:

    Some #Rust string literal #trivia - the following are equal:

    let s = "one line string";

    let s = "one line \
    string";

    And these ones are also equal:

    let lines = "a\nmultiline\nstring";

    let lines = "a
    multiline
    string";

    and now my favorite... 🥁

    let lines = "a\n\
    multiline\n\
    string";

    Playground:
    https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a2c5a0e080a4fc56bb9ea8accac22a8b

    #RustLang #RustTips #Strings

    In conversationabout 5 months ago from floss.socialpermalink

    Attachments

    1. No result found on File_thumbnail lookup.
      Rust Playground
      A browser interface to the Rust compiler to experiment with the language
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.