Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>

    type
        apple = integer;
        orange = integer;
> then any arbitrary arithmetic expression involving apples and oranges is perfectly legal

Same in Kotlin sadly. The whole point of giving a different names to a type is to make them incompatible.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: