During a conversation about coding vs natural language, it came to me that verbs in language are adjusted to match the tense. Specifically I was thinking about Spanish and how a singular verb "var" (go) is adjusted on the fly to match how it's used:
- Voy - I go
- Vas - you go
- Va - he goes
- Vamos - we go
- Vais - you all go
- Van - they go
So do any programming languages take this approach? can I declare a variable agnostically and then assign how it should be used? e.g.
const test;
console.log(testString)
console.log(testInt)
console.log(testFloat)
console.log(testBool)
Honestly I can't think of a use case unless you were developing something for end users/learning to program, but an interesting idea imo.