Last - but not least! - two DConf talks
Jacob Carlborg via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Wed Jul 15 12:28:07 PDT 2015
On 2015-07-13 09:12, Atila Neves wrote:
> https://www.reddit.com/r/programming/comments/3d3ooa/behaviourdriven_development_with_d_and_cucumber/
>
>
> Also on HN, but as usual can't post the link.
The comment about not having to name the steps. One way to do that could
be something like this:
step("foo bar", {
// step implementation
});
There are two problems with that:
1. D doesn't support module level code like this. Which could be solved
by either using a unit test block, a module constructor or some other
function the framework knows about to call.
2. That syntax is not as nice as in Ruby. It would be really nice if the
following could be supported:
step("foo bar") {
// step implementation
}
A trailing delegate syntax, where the delegate is passed after the
regular argument list.
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list