Otter@lemmy.ca to Programming@programming.devEnglish · 6 months agoAmber - the programming language compiled to Bashamber-lang.comexternal-linkmessage-square20fedilinkarrow-up186arrow-down18cross-posted to: [email protected][email protected]
arrow-up178arrow-down1external-linkAmber - the programming language compiled to Bashamber-lang.comOtter@lemmy.ca to Programming@programming.devEnglish · 6 months agomessage-square20fedilinkcross-posted to: [email protected][email protected]
minus-squareOtter@lemmy.caOPlinkfedilinkEnglisharrow-up24arrow-down1·6 months agoI think it’s to make it easier to write bash scripts, for those who are new or when the script is doing a more critical task Modern Syntax You will find many of the language features familiar, allowing you to get up and running much faster than if you were learning Bash from scratch. Runtime Safety It’s one of the key components missing from regular shell scripts. It can help you catch many bugs at compile time. Type Safety Amber ensures that you handle everything that could fail. Each Bash command and function that could fail must be handled in some way.
minus-squareVubDapple@lemmy.worldlinkfedilinkarrow-up11arrow-down2·6 months agoOk, I guess that makes sense. Bash is a pretty old school language for those raised in the functional programming era
minus-squareThe Bard in Green@lemmy.starlightkel.xyzlinkfedilinkEnglisharrow-up4·6 months agoSo if you’re already pretty good at bash would you bother to switch and learn this?
minus-squarevext01@lemmy.sdf.orglinkfedilinkarrow-up27·6 months agoNever heard of this language, but you’d be surprised how hard it is to write a correct and portable shell script. Personally, I’d break out python once the script gets larger than a few lines, or rust if I want something more proper.
Why?
I think it’s to make it easier to write bash scripts, for those who are new or when the script is doing a more critical task
Ok, I guess that makes sense. Bash is a pretty old school language for those raised in the functional programming era
So if you’re already pretty good at bash would you bother to switch and learn this?
Never heard of this language, but you’d be surprised how hard it is to write a correct and portable shell script.
Personally, I’d break out python once the script gets larger than a few lines, or rust if I want something more proper.