senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. blank???? (blank71@fedibird.com)'s status on Thursday, 10-Mar-2022 14:19:36 JST blank???? blank????

    go で

    func Hoge(a int) (a int) { ...}

    と書くと a が 2 回宣言されてしまうのでエラーになる。

    In conversation Thursday, 10-Mar-2022 14:19:36 JST from fedibird.com permalink
    • blank???? (blank71@fedibird.com)'s status on Thursday, 10-Mar-2022 14:22:06 JST blank???? blank????
      in reply to

      後ろの a int で int 型の変数 a を返却する関数であることを定義でき、関数内の return は何も書かなくて良いというのが便利。だが引数の変数とかぶるとエラーになっちゃう。

      In conversation Thursday, 10-Mar-2022 14:22:06 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.