My primary use case for Amber is when I need to write a Bash script but don’t remember the silly syntax. My most recent Bash mistake was misusing test -n and test -z. In Amber, I can just use something == "" or len(something) == 0

  • Samueru_sama@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    20 hours ago
    [ "$age" \< 18 ] && {
    	echo "I'm not an adult yet"
    } || {
    	echo "I'm an adult"
    }
    

    if you want to be using braces in if statements lol