Cleaner property syntax

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: Developers

Cleaner property syntax

Postby argv » Sat Jul 07, 2018 10:27 pm

The current syntax for declaring a property mapped to a single field (a very common pattern) is rather verbose:

Code: Select allExpand view
int SomeProperty;
property SomeProperty: SomeProperty;

This could be shortened:

Code: Select allExpand view
property int SomeProperty;
argv
 
Joined: 30 Aug 2016

Re: Cleaner property syntax

Postby ZippeyKeys12 » Thu Jul 12, 2018 3:33 pm

This will only work for single-variable, same-name properties.
It would be nice if there was a better way, that also applied to more cases.
ZippeyKeys12
 
Joined: 15 Jun 2016

Re: Cleaner property syntax

Postby argv » Thu Jul 12, 2018 7:05 pm

Like this?
Code: Select allExpand view
property SomeProperty: int SomeField1, bool SomeField2;
argv
 
Joined: 30 Aug 2016


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest