this post was submitted on 21 May 2024
89 points (91.6% liked)

Programming

16971 readers
233 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] otter@lemmy.ca 26 points 3 months ago (2 children)

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

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.

[–] VubDapple@lemmy.world 9 points 3 months ago

Ok, I guess that makes sense. Bash is a pretty old school language for those raised in the functional programming era

[–] thebardingreen@lemmy.starlightkel.xyz 4 points 3 months ago (1 children)

So if you're already pretty good at bash would you bother to switch and learn this?

[–] vext01@lemmy.sdf.org 30 points 3 months ago

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.