3 ms·
You can always do "a.text(myVariable).is()". I like your last version though, it seems clean. Your first variation was confusing for me, though. I was trying to
by marknadal 13y ago
You can always do "a.text(myVariable).is()". I like your last version though, it seems clean. Your first variation was confusing for me, though. I was trying to keep all type operators neatly packaged in their respective type, though - isn't that cleaner than having dangling types?
- superqd 13y agoIt was confusing for me because it's using English words, but reading the code is the opposite of how you'd say it in English. I wouldn't ask/think "text myVariable is" (some languages would, I know), which is how "a.text(myVariable).is()" reads. Rather, I would say, "is myVariable text", which would correspond to "is(myVariable).text()", which reads that way in English (I know, a bias).