Hi Neil,

Another question:

Darcs/Commands/Optimize.lhs:110:1: Use isPrefixOf, and then remove the (==) test
Found:
take 4 (just_name pinfo) == "TAG "
Why not:
(4 == length "TAG ") && ("TAG " `isPrefixOf` just_name pinfo)

I assume the (==) referred to in the name of the fix is the one in the suggestion. Why doesn't the suggestion come with the check removed? I.e.:

Why not:
("TAG " `isPrefixOf` just_name pinfo)

Thanks,

Martijn.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to