[email protected]
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
learnbyexample to [email protected]English • 3 months ago

$HOME, Not So Sweet $HOME

gist.github.com

external-link
message-square
24
fedilink
84
external-link

$HOME, Not So Sweet $HOME

gist.github.com

learnbyexample to [email protected]English • 3 months ago
message-square
24
fedilink
Home, Not So Sweet Home
gist.github.com
external-link
Home, Not So Sweet Home. GitHub Gist: instantly share code, notes, and snippets.
  • Scott
    link
    fedilink
    English
    5•3 months ago

    Looks like C++.

    • @[email protected]
      link
      fedilink
      6•3 months ago

      TIL that you can declare return types this way in C++.

      • qaz
        link
        fedilink
        English
        2•3 months ago

        I never understood why they added that

        • @[email protected]
          link
          fedilink
          6•3 months ago

          Among other things it lets you define the return type in terms of the arguments to the function.

        • @[email protected]
          link
          fedilink
          English
          5•3 months ago

          because explicitly declaring types can be redundant, if the compiler knows a lot of the times you should also know

          also because some types are extremely cursed: see std views/ranges

        • @[email protected]
          link
          fedilink
          3•3 months ago

          They’re useful for templates because the trailing version is resolved later

[email protected]

[email protected]

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

  • 1.23K users / day
  • 3.65K users / week
  • 8.22K users / month
  • 17.4K users / 6 months
  • 54.2K subscribers
  • 7.71K Posts
  • 208K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • @[email protected]
  • Arthur Besse
  • Cyclohexane
  • @[email protected]
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org