Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Verius (verius@community.highlandarrow.com)'s status on Monday, 17-Sep-2018 11:59:38 EDT Verius Verius
    Had "fun" with .NET today, trying to check if two trees of objects are equal after a serialization roundtrip. Obviously they weren't because forgot that List<T>.Equals() does not call Equals() on the elements of the list but only does reference equality (i.e. the kind that's both fast and rarely what you want). The right one is an extension method called SequenceEqual. Seriously, in some respects Haskell is just godly: "deriving (Eq)", no need for code generation to create equals methods that will subtly break if you add fields and forget to add them.
    In conversation Monday, 17-Sep-2018 11:59:38 EDT from community.highlandarrow.com permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.