gingershaped / Etch

Etch, an easy-to-use, high-level, interpreted language based off Python.
4 stars 2 forks source link

Implicit Operator Vectorisation #7

Open lyxal opened 2 years ago

lyxal commented 2 years ago

Okay so say you have a list and a number and you want to add that number to each whatever in the list of stuff so you go to use + but it be like "sorry buckaroo, but that's cringe you can't concatenate a list and a number" even though you're like "uh actually I don't want that I want vectorisation" and you realise it's 12:51am and you need to sleep but there's no vectorisation and it doesn't make you happy. Obviously this would be a thing to be added down the line not added right now because this would be a kind of big project plus you'd have to redefine what most operators do but that shouldn't be a problem unless you're just evaling stuff in which case that's kinda cursed but okay.

gingershaped commented 2 years ago

how about we use $= for that operator

gingershaped commented 2 years ago

also, no, I'm not evaling stuff. That's more your specialty.