News for hackers. Stuff that matters.
Re:Show HN: Sabre – The bullshit-free (c) programming language by LittlePeter on Saturday February 20, 2021 @03:10PM (#26207457)
In my opinion, let num = 10 is not bullshit free, num = 10 is.
Re:Show HN: Sabre – The bullshit-free (c) programming language by steve_taylor on Saturday February 20, 2021 @03:57PM (#26207887)
Implicit declaration is bullshit. It allows new variables to accidentally be created out of typos.

Sabre should have gone with var. Without knowledge of existing languages, the meaning of let isn’t exactly obvious.

Re:Show HN: Sabre – The bullshit-free (c) programming language by tines on Saturday February 20, 2021 @04:39PM (#26208218)
I'd say that a knowledge of mathematics is where the meaning of "let" will most often come from. I'm sure we've all read things like "Let x be the speed of a train..."
Re:Show HN: Sabre – The bullshit-free (c) programming language by 4eor0 on Saturday February 20, 2021 @10:50PM (#26210627)
I don’t like “let” because of my math dept in school was all “= is pronounced is” for some reason (long time ago)

“let n is 10”

Tear some hair out every time, as I can’t get my brain to stop

Re:Show HN: Sabre – The bullshit-free (c) programming language by ttymck on Tuesday February 23, 2021 @03:23PM (#26242408)
Why would the pronunciation of the equals sign not be "equals"?
Re:Show HN: Sabre – The bullshit-free (c) programming language by postalrat on Saturday February 20, 2021 @06:39PM (#26209205)
let num = 10

spot the typo

Re:Show HN: Sabre – The bullshit-free (c) programming language by phabora on Saturday February 20, 2021 @06:26PM (#26209092)
Let n be the number of comments about syntax in this thread and let total be the number of comments: n / total.
Re:Show HN: Sabre – The bullshit-free (c) programming language by garritfra on Saturday February 20, 2021 @03:13PM (#26207499)
That's highly subjective. I see where you're coming from, but I personally think that num = 10 is weird to read.
Re:Show HN: Sabre – The bullshit-free (c) programming language by protomyth on Saturday February 20, 2021 @03:31PM (#26207650)
Well, there is an argument for := or <- for assignments.
Re:Show HN: Sabre – The bullshit-free (c) programming language by garritfra on Saturday February 20, 2021 @03:39PM (#26207722)
I personally don't consider that syntax bs-free. When coming from another language, it's quite likely that you haven't encountered that syntax before.
Re:Show HN: Sabre – The bullshit-free (c) programming language by protomyth on Saturday February 20, 2021 @07:59PM (#26209773)
Anyone who grew up with Pascal has seen := a lot. On a personal note, I do hate the overloading of =.
Re:Show HN: Sabre – The bullshit-free (c) programming language by chordalkeyboard on Saturday February 20, 2021 @03:33PM (#26207673)
> there is an argument

Lol

Re:Show HN: Sabre – The bullshit-free (c) programming language by eyelidlessness on Saturday February 20, 2021 @03:56PM (#26207882)
It’s not entirely subjective. For the majority of languages with a `let` keyword, it creates a binding which can’t be reassigned. JS is the only major language I’m aware of that breaks this expectation, and uses `const` instead.

In fact, I had assumed Sabre followed the more common pattern, and was quite surprised to discover it doesn’t later in the docs. I think that’s a pretty clear case of “bullshit” in the sense described in the README.

Re:Show HN: Sabre – The bullshit-free (c) programming language by dragonwriter on Saturday February 20, 2021 @06:42PM (#26209231)
> For the majority of languages with a `let` keyword, it creates a binding which can’t be reassigned. JS is the only major language I’m aware of that breaks this expectation

The whole BASIC family, including the VB subfamily, also breaks it, though in some (including VB) LET is an optional noise keyword and not required.

Re:Show HN: Sabre – The bullshit-free (c) programming language by eyelidlessness on Saturday February 20, 2021 @09:12PM (#26210217)
That’s fair and a reasonable contradiction. Though I’d say that’s more in line with the huge range of optional keywords in SQL that are more a matter of readability preference than syntax.
Re:Show HN: Sabre – The bullshit-free (c) programming language by carapace on Saturday February 20, 2021 @05:52PM (#26208779)
Variables are overrated. 10 is BS-free.