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

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. 7of9(0x70f9=28921) (7of9@qiitadon.com)'s status on Monday, 17-Sep-2018 16:30:17 JST 7of9(0x70f9=28921) 7of9(0x70f9=28921)

    #coding
    #enum

    enum定義で先頭と最終しか使わない実装。

    enum定義する必要性を感じない。

    「後で使おう」として使われなかったパターンなのだろうか。

    -----
    enumの利点は、要素を足したり、要素の並びを変えたりしやすい点だと認識している。

    In conversation Monday, 17-Sep-2018 16:30:17 JST from qiitadon.com permalink
    • 7of9(0x70f9=28921) (7of9@qiitadon.com)'s status on Monday, 17-Sep-2018 16:42:24 JST 7of9(0x70f9=28921) 7of9(0x70f9=28921)
      in reply to

      #coding
      #enum

      typedef enumでデータ型の定義をして使用しているようだ。

      こうすることの使い道は、引数で渡した時、その値がenum定義外の場合にエラーとなること。

      In conversation Monday, 17-Sep-2018 16:42:24 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.