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

I don't have strong knowledge in types theory, but why

class C { a: int = 0; }

can't be replaced with

class C { a = 0; }

? what issues it brings?..



That can. But what about a field that is not initialized there?


obviously you would need to provide type.




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

Search: