DEV Community

Discussion on: Pros and Cons of Ruby's .tap Method

Collapse
 
bensandeen profile image
BenSandeen

As someone who's still learning Ruby, the tap method seems like nothing but a syntactic sugar that adds nothing but some indentations and an extra line for the end at the end of the block. Why not just use the simple equivalent that is fairly universal across OOP languages, which takes no extra cognitive load to understand?