I'm porting some rust tests to ruby and amazed to discover that after just replacing the `#[test] fn...() {...}` with `it "..." do...end` it runs
Since # is a comment, I'd think even before changing the fn definitions it was syntactically valid right? Calling fn on self with the result of calling the name as an arg and the body as a block?
-
-
TBH Ruby is so syntactically flexible, I'd suspect a surprising number of files from random languages are syntactically valid Ruby
-
Reminds me of the "If you throw paint at the wall how many are valid Perl programs?" Question
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.