[swift-users] Parameter Validation
Jan Neumüller
nasan at slayers.de
Mon Dec 7 13:39:28 CST 2015
> On 07.12.2015, at 20:03, Jens Alfke <jens at mooseyard.com> wrote:
>
>
>> On Dec 7, 2015, at 10:56 AM, Jan Neumüller via swift-users <swift-users at swift.org <mailto:swift-users at swift.org>> wrote:
>>
>> But what overhead? As you know Swift has *NO* exceptions. It’s just syntax sugar for normale error values.
>
> Mostly the overhead in the caller of having to pass a (hidden) error parameter into the call, and check the return value and branch afterwards.
I fail to see any overhead here. Its the absolute minimum to get checked values. Anything less is not checking.
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151207/18872d47/attachment.html>
More information about the swift-users
mailing list