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
    Paul Cantrell (inthehands@hachyderm.io)'s status on Thursday, 09-May-2024 01:12:28 JSTPaul CantrellPaul Cantrell
    in reply to
    • Nick Lockwood

    @nicklockwood
    Don’t know if these qualify as “advanced” so much as “oft overlooked,” but:

    - reduce(into:) is useful

    - underscores can make large numbers readable: 1_000_000

    - ContinuousClock is useful

    - If you want an “open enum” (i.e. clients of lib can add cases), don’t use enum; use e.g. `protocol Color` + possibly empty `struct Mauve: Color` for cases, then match with `value is Mauve`, or `case let value as Mauve` if you need to narrow the type of `value` when matched

    In conversationabout a year ago from hachyderm.iopermalink
  • 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.