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

> It tries to implement discriminated union in C++ but that feature is lame without true pattern matching. And you can’t implement pattern matching without thorough syntax level support. So in my books it’s in this academic “let’s pretend a while we are using some other language…” category.

I agree, they should have made it a language/syntax feature. However: if you wanna do a sum type, it does do that. I'd rather have that than nothing.



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

Search: