News for hackers. Stuff that matters.
Re:The power of Result types in Swift by wool_gather on Sunday June 17, 2018 @07:55PM (#17335054)
I assume you mean the static typing that Swift has, in favor of something like Python or Ruby, where the type of thing in a variable is both implicit and unfixed. Saying that there should be no types at all is...well, maybe it's just a failure of my imagination, but I don't even know how you could write a program. Even assembler has types.
Re:The power of Result types in Swift by khitchdee on Sunday June 17, 2018 @08:44PM (#17335194)
Well I think basic data types are enough to express what the variable is expected to hold. Any highewr level types above that, such as what higher level languages provide are, I think a luxury for lazy programmers