3 ms·
Check if your language has a pipe operator. You may be able to do something like this: my $baz = GetFoo() |> GetBar |> GetBaz;
by trevinhofmann 5y ago
Check if your language has a pipe operator. You may be able to do something like this:
my $baz = GetFoo()
|> GetBar
|> GetBaz;
- forgotmypw17 5y agoThanks for the idea, I'll consider it. One of the other reasons I use this style is because it allows me to port code easily between different languages. For example, aside from the "my" keyword, I can pretty much copy and paste the same code between PHP and Perl.