[swift-users] Coding style for internal/private variables

Adrian Zubarev adrian.zubarev at devandartist.com
Wed Jun 1 11:02:33 CDT 2016

I’d like to talk about your personal coding styles in swift for its access control.

Remember these variable names like __magic or _spell or even garbage_?

Sure swift solves the synthesize problem but there might be old habits that let us write such code.

Here are some examples:

internal _name
internal i_name
private __name
private p_name

// not sure where `garbage_` would fit
I’d love to see your responses and opinions what and why the style you choose suits you.

Adrian Zubarev
Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160601/ee119f5a/attachment.html>

More information about the swift-users mailing list