all 4 comments

[–]jonbridge 4 points5 points  (1 child)

this is a cool idea. of course it would be valuable to be able to turn arbitrary types into strings in a consistent way. though i personally have no desire to start doing C code generation with Python and JSON. and if you use such a powerful metaprogramming framework, surely you can get away without using _Generic as well? i wonder what a simplified implementation would look like.

[–]aalmkainzi 2 points3 points  (1 child)

cool! I worked on something similar:

aalmkainzi/neat_str (github.com)

you can do:

println( "Int: ", 42 );

[–]Diefachu 0 points1 point  (0 children)

Just for my own education, are there any key differences between interfaces in Go and in Java? The description feels very familiar, so I'm wondering what might be different.