Jump to content
357mag

Question about formatting

Recommended Posts

I've wondered if I should do this:

 

EditPrompt->Text

 

or this by adding some whitespace:

 

EditPrompt -> Text

 

How do you guys do it or is there a convention?

Share this post


Link to post
1 hour ago, 357mag said:

How do you guys do it or is there a convention?

This is entirely a matter of personal choice.  The compiler doesn't care one way or the other, it ignores whitespace between language tokens.  So use whichever format is easier for you to read/write.

 

Personally, I don't use whitespace around '->'.

Share this post


Link to post

I don't use CB but -> is not an operator here which are recommended to be delimited. It's member accessor that form a concrete variable. It should not be broken (with exception for newlines and chained calls if you wish)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×