4 ms·
It's almost like someone took Gherkin (the Cucumber BDD parser) and got it working inline Almost but not quite. given/when originates from perl6 and has been
by draegtun 16y ago
It's almost like someone took Gherkin (the Cucumber BDD parser) and got it working inline
Almost but not quite. given/when originates from perl6 and has been in the spec from at least 2006 and probably a lot earlier [1]. Its also been part of perl5 since 5.10 (2007) [2].
I believe both of these predate Cucumber/Gherkin.
refs:
[1] http://web.archive.org/web/20061011073242/http://perlcabal.org/syn/S03.html http://web.archive.org/web/20061011073242/http://perlcabal.o...
[2] http://perldoc.perl.org/perl5100delta.html#Switch-and-Smart-Match-operator http://perldoc.perl.org/perl5100delta.html#Switch-and-Smart-...
- colomon 16y agoI just checked the book Perl 6 Essentials (2003, sigh) and it has given / when already, looking very close to the current standard.