Comment

Comment by muzani

I think I understand what OP means. I work with some smart people who use code like

    val x: Pair<String, Pair<String, String>> 
instead of say

    data class Status(key: String, value: String)
    data class Item(name: String, status: Status)
    val x: Item
To the smart ones who can keep everything in their head, the first block of code is trivial and obvious and they don't even notice that it's hard for others to read and easy to make mistakes in.
parent muzani 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton