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

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

Conversation

Notices

  1. Embed this notice
    Marco Arment (marcoarment@mastodon.social)'s status on Thursday, 05-Sep-2024 00:08:00 JST Marco Arment Marco Arment

    Modern Substrings in Swift
    A Story in Two Acts

    This should be easy!

    return s[0..<4]

    [X] 'subscript(_:)' is unavailable: cannot subscript String with an integer range, use a String.Index range instead.

    AAAHHHH DAMN IT HOW DO I DO THIS AGAIN (furiously Stack Overflows)

    - Act 2 -
    are you serious, is this really the solution

    return s[s.startIndex..<s.index(s.startIndex, offsetBy: 4)]

    [X] Cannot convert return expression of type 'Substring' to return type 'String'

    AAAAAAAAAAAAAAHHHHHHHHHHHHHH

    In conversation about 10 months ago from mastodon.social permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Thursday, 05-Sep-2024 00:07:59 JST Paul Cantrell Paul Cantrell
      in reply to
      • Ellen Shapiro

      @marcoarment @designatednerd
      When convenience, performance, and correctness are all mutually exclusive, there is no joy in Mudville.

      I blame text. Text was a mistake.

      In conversation about 10 months ago permalink
    • Embed this notice
      Paul Cantrell (inthehands@hachyderm.io)'s status on Thursday, 05-Sep-2024 00:22:06 JST Paul Cantrell Paul Cantrell
      in reply to
      • Ellen Shapiro

      @designatednerd @marcoarment

      In conversation about 10 months ago permalink

      Attachments


      1. https://media.hachyderm.io/media_attachments/files/113/079/964/366/734/893/original/109948187236d2ab.jpeg
    • Embed this notice
      Ellen Shapiro (designatednerd@mastodon.social)'s status on Thursday, 05-Sep-2024 00:22:07 JST Ellen Shapiro Ellen Shapiro
      in reply to
      • Paul Cantrell

      @inthehands @marcoarment attempting to encode messy, broken human systems in ways that computers can understand and reliably reproduce was a mistake

      In conversation about 10 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • 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.