Boost logo

Boost :

From: Martin Bonner (martin.bonner_at_[hidden])
Date: 2005-08-18 09:47:11


----Original Message----
From: Rob Stewart [mailto:stewart_at_[hidden]]
Sent: 18 August 2005 15:12
To: boost_at_[hidden]
Cc: boost_at_[hidden]
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_at_[hidden]
Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB4 6WZ,
ENGLAND Tel: +44 (0)1223 441434

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk