
----Original Message---- From: Rob Stewart [mailto:stewart@sig.com] Sent: 18 August 2005 15:12 To: boost@lists.boost.org Cc: boost@lists.boost.org Subject: Re: [boost] Interest for a perl6-like-junctions-class?
You can omit spaces to make it look right to you. I dislike omitting spaces around operators.
But semantically they're not operators, they're punctuators to create a user defined operator
So, without the internal spaces, do you like any of them?
if (any_of(...) <<some_predicate()>> 5)... // 1 Stands out visually, but that's ANOTHER overloading of >> and <<
if (any_of(...) <some_predicate()> 5)... // 2 This is going to get messy as you say with templates (which would FORCE a space in).
if (any_of(...) ^some_predicate()^ 5)... // 3
if (any_of(...) /some_predicate()/ 5)... // 4 These two are visually too light-weight for my taste.
Why not: if (any_of(...) *some_predicate()* 5)... or if (any_of(...) %some_predicate()% 5)... ? -- Martin Bonner Martin.Bonner@Pitechnology.com Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ, ENGLAND Tel: +44 (0)1223 441434