tayloraswift / godot-swift

swift language support for the godot game engine
116 stars 5 forks source link

Update example code to match popular Swift style guidelines #5

Closed alicerunsonfedora closed 2 years ago

alicerunsonfedora commented 3 years ago

This should help reduce confusion for those getting started with the library.

Fixes #2.

lexum0 commented 2 years ago

@kelvin13 can you please merge this?

tayloraswift commented 2 years ago

hi @lexum0 , while Swift does have official API-level style guides (which Godot Swift makes a best effort to harmonize with), there are many accepted ways to display Swift at the pure-formatting level, including the visual style used in the plugin documentation. i do not really see a good reason to switch the example code from one formatting mode to another, unless there are other, non-superficial changes to be made.

alicerunsonfedora commented 2 years ago

@kelvin13 I'll go ahead and close this, then, until/unless there's a need to reopen it.