Comment

Comment by blkhp19

In Swift, you shouldn't use Optional like this. You should instead make a new type to represent exactly what parameter this function expects:

  enum AllowList {
    case all
    case some([ClientIdentifier])
  }
parent blkhp19 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton