On 24/07/2008, at 11:37 PM, Adelle Hartley wrote:

float ExchangeRate = SelectedCustomer.Country.Currency.ExchangeRate;
// Some people find this confusing.

Which brings me to the title of this post.

I could have written the last line as

Country CustomerCountry = SelectedCustomer.Country;
Currency CustomerCurrency = CustomerCurrency.ExchangeRate;
float ExchangeRate = CustomerCurrency.ExchangeRate;

slug-chat had a discussion about this last month; the thread starts at

 http://lists.slug.org.au/archives/slug-chat/2008/06/msg00059.html

but (d)evolved into a discussion with Daniel Pittman and myself about the idea of splitting up a long expression (i.e. run-on dereferencing) into multiple lines:

 http://lists.slug.org.au/archives/slug-chat/2008/06/msg00067.html


--
% Andre Pang : trust.in.love.to.save  <http://www.algorithm.com.au/>



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to