Cool Idea: type system and operators for shell variables #32

Open
opened 2025-12-24 20:20:54 -07:00 by parker_macdonald · 0 comments

shell variables could have types, and have different operators, like:

setvar a num 5
setvar b str "hello"
echo {a + b} # prints "5hello"

or

setvar a num 5
echo {a * a} # prints 25
shell variables could have types, and have different operators, like: ```bash setvar a num 5 setvar b str "hello" echo {a + b} # prints "5hello" ``` or ```bash setvar a num 5 echo {a * a} # prints 25 ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: parker_macdonald/rash#32
No description provided.