“This former Google engineer has endeavoured to turn #Rust into a library that other languages can build from, demonstrating a way to pass generic #DataTypes and #functions between Rust and another language, an action the C #ABI doesn’t support.”
#RustLang / #EvanOvadia / #ElReg
#datatypes
2 posts · Last used Sep 26
What is this?
– if key is string, then value must be int
– if key is int, then value must be bool
It should allow for ['foo' => 1, true]
#AskFedi #FollowerPower #amCoding #amProgramming #softwareDevelopment #softwareEngineering #PHP #PHPStan #computerScience #dataTypes #typeSystem #typeTheory #typeVariance #compositeDataTypes #dataTypeComposition
What is this? – if key is string, then value must be int – if key is int, then value must be bool It should allow for ['foo' => 1, true] #AskFedi #FollowerPower #amCoding #amProgramming #softwareDevelopment #softwareEngineering #PHP #PHPStan #computerScience #dataTypes #typeSystem #typeTheory #typ
union: array<string, int>|array<int, bool> 60%
something else (please comment) 0%
intersection: array<string, int>&array<int, bool> 40%
5 people · Closed
You've seen all posts