Hacker News new | ask | show | jobs
by byt143 2315 days ago
Thanks. I mean in julia you can use traits for that, but it's not built in (yet). Though there's no speed penalty, as you probably know.

So this is about extending types, but it sounds like swift is strictly "better" then, since it's also statically checked? Or is there something that multiple dispatch gives that substantively better?

I'm trying to get a feel for if the Swift for Tensorflow project will afford the same kind of composability, while keeping static type checking, modules etc (assuming they work out cross module code specialization, which I think is happening).

1 comments

Does swift have macros?

Looks like there's some work in bolting type checking on to Julia (small surprise, as we've seen that with eg: python and ruby as well).

I'd hazard it's easier to bolt on typechecking than a proper macro system.

It does not have macros.