@bonifartius @thor the main issue with that is how the entire ecosystem is made for passing strings around. Strings are the lowest common denominator - they can contain any value or data structure, badly. I think Microsoft tried to improve on that by adding basic type handling in PowerShell, but it went nowhere because Microsoft and closed, windows-only software.
It would be nice if the shell community would get together and revisit the idea, as the possibility of passing binary data with generic type annotations would make shell plumbing both more efficient and less of a pain in the ass. On the other hand the sheer scale of such an undertaking in a way that would make everyone happy, and the inertia cost of changing one of the most widely adapted standards in the world makes it unlikely.
@Amikke @thor powershell is open sourced afaik (except windows parts). there is a rather good paper about the ideas that went into it.
i think that strings are still the best solution we have for shells. i can solve problems today, using the same tools invented _decades_ ago. if this will be the case for other ideas is questionable, even if they might be more elegant. for shell usage flexibility reigns.