EZSwiftExtensions icon indicating copy to clipboard operation
EZSwiftExtensions copied to clipboard

Docs example unclear

Open Esqarrouth opened this issue 7 years ago • 3 comments

"I really wonder why someone would prefer array.get(1) over array[1]. (1st example in Readme)"

Read this in reddit, should make the benefits more clear

Esqarrouth avatar Jan 13 '17 00:01 Esqarrouth

Are there any array[safe: 1] or array.safe[1]? This would really be better than array.get(at: 1) :)

piv199 avatar Jan 13 '17 00:01 piv199

@piv199 Does the safety criteria involve throwing errors over segfaults ?

Khalian avatar Feb 05 '17 08:02 Khalian

@Khalian the same behaviour as get(at:)

piv199 avatar Feb 05 '17 09:02 piv199