Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
selcuka
on May 6, 2023
|
parent
|
context
|
favorite
| on:
Monoliths are not dinosaurs
Obviously you haven't seen the Substring [1] type of Swift.
[1]
https://developer.apple.com/documentation/swift/substring
reactordev
on May 6, 2023
[–]
But this is a slice. So technically a []char?
selcuka
on May 7, 2023
|
parent
[–]
Not really. It's only a reference to the original string, a start index, and an end index. It doesn't store a second (partial) copy of the string.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://developer.apple.com/documentation/swift/substring